Last week I had to migrate a customer to Office 365.
Normally I use the standard migration scripts, as used in my earlier post :
But this time nothing happened while executing the script Exchange2007MBtoMEU.ps1
Fortunately I used the customized script from Paul Cunninham:
This script is the same as the Microsoft script, but adds a log file!
The Error on screen is:
WARNING: The Windows PowerShell snap-in ‘microsoft.exchange.management.powershell.admin’ is not installed on this machine.
Here you can find the solution :
Error when using Exchange2007MBtoMEU.ps1:
WARNING: The Windows PowerShell snap-in ‘microsoft.exchange.management.powershell.admin’ is not installed on this machine.
First check the available snapins:
get-pssnapin –registered
I’ve found the snapin : microsoft.exchange.management.powershell.E2010
Edit the script Exchange2007MBtoMEU.ps1
Change the command:
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin -ErrorAction STOP
To
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 -ErrorAction STOP
After changing this the command will be successful !