If I run a command, like: Set-MailContact -Identity "User One" -CustomAttribute "Testing" I get this message: [quote]WARNING: The command completed successfully but no settings of 'domain.com/Microsoft Exchange Hosted Organizations/TestOrg/User One' have been modified.[/quote]
I tried to add | Out-Null but I still get the message. I don't want any feedback at all from the command, even if it's a red error message. How do I fix this?
by ArtB0514 at 2013-01-15 06:06:31
Read Get-Help About_CommonParameters. Then try this:
No problem. It took me a while to catch onto the common parameters, too.
by PatricF at 2013-01-15 07:04:18
This was weird. 'Set-MailContact' still gives me the yellow warning message, however with some other commands it work just fine.. It works with the "ErrorAction" for 'Set-MailContact' but not "WarningAction" for some reason..