SOLVED

Import-Module : The specified module 'Microsoft.SharePoint.MigrationTool.PowerShell' was not loaded

Copper Contributor

I am evaluating the PowerShell migration cmdlets from below article. I get below error for PowerShell module. I couldn't find a way to install this module. Please let me know if you have any suggestions.

https://docs.microsoft.com/en-us/sharepointmigration/overview-spmt-ps-cmdlets

 

Import-Module : The specified module 'Microsoft.SharePoint.MigrationTool.PowerShell' was not loaded because no valid module file was found in any module directory.

2 Replies
Hi,
You must create folder under Modules with name your module. In your case the name of folder mod and copy script to this folder.

Please refer the link below..
https://social.technet.microsoft.com/Forums/en-US/3e2c37bd-66e1-4373-86a3-0fb3e138f6a5/import-powers...
best response confirmed by Rahul null (Copper Contributor)
Solution

I was able to resolve this. Looks like it works for the user for which SharePoint Migration tool is installed.

I had installed migration tool with my regular account but was trying to run PowerShell with admin account. After running PowerShell with regular account, it worked just fine.

 

Thanks,

Rahul Babar

1 best response

Accepted Solutions
best response confirmed by Rahul null (Copper Contributor)
Solution

I was able to resolve this. Looks like it works for the user for which SharePoint Migration tool is installed.

I had installed migration tool with my regular account but was trying to run PowerShell with admin account. After running PowerShell with regular account, it worked just fine.

 

Thanks,

Rahul Babar

View solution in original post