creative555
asked on
Powershell script error GPOMigration' was not loaded because no valid module file was found in any modu le directory. Please help
Hello,
I download another GPO script for importing GPOs and it is failing. I extracted all the contents and it does have that module directory that it is complaining about. Please let me know why I am getting it:
https://gallery.technet.microsoft.com/Migrate-Group-Policy-2b5067d8
PS C:\GPOscriptbest2> .\Call-GPOExport.ps1
Import-Module : The specified module '.\GPOMigration' was not loaded because no valid module file was found in any modu
le directory.
At C:\GPOscriptbest2\Call-GPO Export.ps1 :65 char:14
+ Import-Module <<<< ".\GPOMigration" -Force
+ CategoryInfo : ResourceUnavailable: (.\GPOMigration:String) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : Modules_ModuleNotFound,Mic rosoft.Pow erShell.Co mmands.Imp ortModuleC ommand
The term 'Start-GPOExport' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\GPOscriptbest2\Call-GPO Export.ps1 :75 char:16
+ Start-GPOExport <<<< `
+ CategoryInfo : ObjectNotFound: (Start-GPOExport:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
I download another GPO script for importing GPOs and it is failing. I extracted all the contents and it does have that module directory that it is complaining about. Please let me know why I am getting it:
https://gallery.technet.microsoft.com/Migrate-Group-Policy-2b5067d8
PS C:\GPOscriptbest2> .\Call-GPOExport.ps1
Import-Module : The specified module '.\GPOMigration' was not loaded because no valid module file was found in any modu
le directory.
At C:\GPOscriptbest2\Call-GPO
+ Import-Module <<<< ".\GPOMigration" -Force
+ CategoryInfo : ResourceUnavailable: (.\GPOMigration:String) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : Modules_ModuleNotFound,Mic
The term 'Start-GPOExport' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\GPOscriptbest2\Call-GPO
+ Start-GPOExport <<<< `
+ CategoryInfo : ObjectNotFound: (Start-GPOExport:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.