Delivery Option
Hello, I use Exchange 2007 From the MailFlow Settings Delivery Option I would need to know whether the users have the "forward to:" option ticked or not (and this from a list of aliases in a txt file... get-content C:\aliases.txt...) From the above question I would then need to untick all boxes from the aliases' list I got. Could you please help me? Thanks to all in advance. Graig
July 1st, 2010 10:47pm

so you need a script to find any forwards set on a mailbox and report the address listed in the forward? Then you want to disable forwarding on all mailboxes? This can get you a list of users with that forward enabled and where it points to get-mailbox | where {$_.ForwardingAddress -ne $null} | select-object Name,ForwardingAddress | export-csv c:\list.csv -NoTypeInformation I have been playing with the commands trying to get it use the list to set-mailbox -ForwardingAddress $null But I havent been able to give me the correct results. maybe someone else can help out. I am not a powershell guru.
Free Windows Admin Tool Kit Click here and download it now
July 1st, 2010 11:36pm

Hello, I use Exchange 2007 From the MailFlow Settings Delivery Option I would need to know whether the users have the "forward to:" option ticked or not (and this from a list of aliases in a txt file... get-content C:\aliases.txt...) From the above question I would then need to untick all boxes from the aliases' list I got. Could you please help me? Thanks to all in advance. Graig Try this: Get-Content "C:\Aliases.txt" |Get-Mailbox | foreach{ if( $_.ForwardingAddress -ne $null) { Set-Mailbox $_.Identity -ForwardingAddress $null } } Regards, Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
July 2nd, 2010 12:03am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics