Exchange 2007 - putting up a list of mailboxes.
I am administering an Exchange 2007 with tons of mailboxes. My boss wants me put up a list of all the mailboxes + the status of each (active or disabled) + forwarding email address (if applicable). I can easily export the list of mailboxes to a CSV file from the console but how do I add the other required info?
December 24th, 2011 11:48am

Get-Mailbox |Select Name, ForwardingAddress-Cheers Shaba
Free Windows Admin Tool Kit Click here and download it now
December 24th, 2011 12:07pm

Something like this: $AllMailboxes = @() foreach ($Mailbox in Get-Mailbox -ResultSize unlimited) { $CurrentBox = "" | Select-Object Name,Status,ForwardingAddress If ((Get-User $Mailbox.SamAccountName).UserAccountControl -Like "*AccountDisabled*") { $Status = "Disabled" } Else { $Status = "Active" } $CurrentBox.Name = $Mailbox.DisplayName $CurrentBox.Status = $Status $CurrentBox.ForwardingAddress = $Mailbox.ForwardingAddress $AllMailboxes.Add($CurrentBox) } $AllMailboxes Karl My Blog: http://unlockpowershell.wordpress.com My Book: Windows PowerShell 2.0 Bible My E-mail: -join ("6B61726C6D69747363686B65406D742E6E6574"-split"(?<=\G.{2})",19|%{[char][int]"0x$_"})
December 24th, 2011 5:21pm

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

Other recent topics Other recent topics