Symptoms
After manually importing the ShareGate Migrate PowerShell module using the Import-Module
command, you get an Argument 'Your-Command' is not recognized as a cmdlet: Method not found error message when attempting to execute a ShareGate Migrate command.
Error Code
Not applicable.
Details
In order to execute PowerShell commands from the ShareGate Migrate module, the module must first be imported. However, starting with ShareGate Migrate 5.12, the ,.NET framework version 4.6 is required to execute ShareGate Migrate and its associated commands.
When importing the module manually, the .NET framework version 4.6 cannot be validated unlike other versions. Therefore, if it has not been installed on the computer running the commands, the module will be imported, but unable to run properly.
Solution
Make sure that you are using an existing command from the ShareGate Migrate module, the full list of commands is available in our PowerShell section.
Make sure that the .NET Framework 4.6 version is installed on your computer. You can verify this by opening any ShareGate Migrate 5.12 or higher executable. If it is not installed, a prompt indicating that this version of the framework is needed will be shown.
Make sure that the module was imported correctly. Either start the Shell window from ShareGate Migrate or by running the ShareGate Migrate Shell executable.