Create List_All_User_Mailbox_Databases.ps1

This commit is contained in:
admPohle committed 2021-02-02 11:28:51 +01:00
1 parent ef88b8ec6a
commit 6c9e55d74b
1 file changed
+8
@@ -0,0 +1,8 @@
# 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;
# Show current Database of Users
Get-mailbox -ResultSize Unlimited | select SamAccountName, alias, database | export-csv ".\User_Mailbox_Databases.csv" -Append -NoTypeInformation -Encoding UTF8 -Delimiter ";"