Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Office365 Powershell command help

$
0
0

I am trying to create a powershell command to disable clutter for all users in our Office365 account with a certain domain. Googling has led me to 2 command that both work independently of each other, but I can't get them to work when I try combining them

Powershell
get-recipient-ResultSizeunlimited|where{$_.emailaddresses-matchmydomain.com}
And
Powershell
Set-Clutter-Identityuser@domain.com-Enable$false

This is what I tried to do

Powershell
get-recipient-ResultSizeunlimited|where{$_.emailaddresses-matchme@mydomain.com}|ForEach-Object{Set-Clutter-Identity$_.emailaddress-Enable$false}
but I get
Cannot validate argument on parameter 'Identity'. The argument is null or empty. Supply an argument that is not null
or empty and then try the command again.

I need the help from someone more knowledgeable than myself


Viewing all articles
Browse latest Browse all 15370

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>