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-match“mydomain.com“}Powershell
Set-Clutter-Identityuser@domain.com-Enable$falseThis is what I tried to do
Powershell
get-recipient-ResultSizeunlimited|where{$_.emailaddresses-match“me@mydomain.com“}|ForEach-Object{Set-Clutter-Identity$_.emailaddress-Enable$false}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