2021-02-02 11:28:51 +01:00
|
|
|
|
# List all User Mailbox Databases
|
|
|
|
|
|
|
|
|
|
|
|
# Load Snap In (when called in PowerShell ISE and not in Exchange Management Shell)
|
|
|
|
|
|
# Snapin for Exchange 2013 and later
|
|
|
|
|
|
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn;
|
|
|
|
|
|
|
2021-02-02 11:31:48 +01:00
|
|
|
|
# Show current Database of Users and Export in a CSV Format that can be easily imported into Microsoft Excel
|
2021-02-02 11:28:51 +01:00
|
|
|
|
Get-mailbox -ResultSize Unlimited | select SamAccountName, alias, database | export-csv ".\User_Mailbox_Databases.csv" -Append -NoTypeInformation -Encoding UTF8 -Delimiter ";"
|