Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Capture actions of script

$
0
0

Hello Tech gurus,

I have a script which disable forwarding applied on users:

 

Get-mailbox $_.alias | Where {$_.ForwardingAddress -ne $null} | Set-Mailbox -ForwardingAddress $null -DeliverToMailboxAndForward $false }

 

Can you please help me in extracting actions of script into outfile.log/.txt.

 

I would like to know if it is disabled for every user.

 

I thank you in advance for your assistance and guidance.

 

regards,

Gautam


Viewing all articles
Browse latest Browse all 6937

Trending Articles