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:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user