Forum Discussion
Rahul null
Dec 28, 2018Copper Contributor
Import-Module : The specified module 'Microsoft.SharePoint.MigrationTool.PowerShell' was not loaded
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.
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
- Rahul nullCopper Contributor
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
- Thuyavan GanesanSteel ContributorHi,
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-powershell-module?forum=winserverpowershell