Create List_All_User_Mailbox_Databases.ps1
This commit is contained in:
8
Microsoft/Exchange/List_All_User_Mailbox_Databases.ps1
Normal file
8
Microsoft/Exchange/List_All_User_Mailbox_Databases.ps1
Normal file
@@ -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 ";"
|
||||
Reference in New Issue
Block a user