Update Exchange Move Requests.ps1

Add Snapin, when Statements are called from the normal PowerShell or the ISE and not from the Exchange Management Shell
This commit is contained in:
2020-06-19 09:47:44 +02:00
parent f027830307
commit b8a724a652

View File

@@ -1,5 +1,12 @@
# Handle Exchange Move Requests # Handle Exchange Move Requests
# 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
Get-mailbox -identity LOGONID | fl database, alias
# New Batch # New Batch
New-MoveRequest -Identity ALIAS -TargetDatabase DATABASE -BatchName ALIAS -BadItemLimit 10000 New-MoveRequest -Identity ALIAS -TargetDatabase DATABASE -BatchName ALIAS -BadItemLimit 10000