Quantcast
Channel: Exchange Server 2013 - Setup, Deployment, Updates, and Migration forum
Viewing all articles
Browse latest Browse all 7129

PowerShell Report of Deleted Mailboxs on Exchange 2003

$
0
0

Preparing for Migration from Exchange 2003 to Exchange 2010/13

and or Office 365, you'll need to find "Deleted Mailboxes".

Since PowerShell doesn't have any Calls direct to Ex2003 for this, we have to pull WMI objects.

This Script will pull all the Deleted Mailboxes from Ex2003 from your Ex2010 Native or Hybid Server.

$now = Get-Date #Used for timestamps
$date = $now
$Deleted_Mailboxes = Get-Wmiobject -namespace root\MicrosoftExchangeV2 -class Exchange_Mailbox -computer EX2003Server -Filter "DateDiscoveredAbsentInDS is not null" MailboxDisplayName,ServerName,StorageGroupName,StoreName,Size,DateDiscoveredAbsentInDS | sort-object MailboxDisplayName
$Deleted_Mailboxes | Export-Csv "F:\Reports\Deleted_Mailboxes$Date.csv" -NoTypeInformation 
#Exports collected Data From Ex2003Server (your server name) to CSV on F drive


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>