Daily Archives: September 21, 2010

Print all mail enabled public folders

$Address = @{Name=”SMTPAddress”;expression={if ($_.MailEnabled -eq $True){Get-MailPublicFolder $_ | Select PrimarySMTPAddress}}} Get-PublicFolder -GetChildren | select Name, Identity, MailEnabled, $Address | ft -Auto ################################### Or export to CSV the complete list of public folders: Get-PublicFolder -Recurse | Export-Csv c:\public_folders.csv -noType

Leave a Comment

Filed under Datacenters, Windows

Exchange 2007: Database Statistics in Powershell

1.  How do we find number of mailboxes in each database? On Screen: Get-MailboxDatabase | Select Server, StorageGroupName, Name, @{Name=”Number Of Mailboxes”;expression={(Get-Mailbox -Database $_.Identity | Measure-Object).Count}} | Format-Table -AutoSize Export to CSV: Get-MailboxDatabase | Select Server, StorageGroupName, Name, @{Name=”Number Of … Continue reading

Leave a Comment

Filed under Datacenters, Windows