I am running the following cmdlet to add specific rule to a users mailbox:
Set-TransportRule "Some rule" -From bad.user@g.com
This works fine but I want to be able to tell if for some reason the cmdlet failed, in this case for a bad email address but in the case above I am not getting back any kind of status whether failed or succeeded.