Link to home
Start Free TrialLog in
Avatar of creative555
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-GPOExport.ps1:65 char:14
+ Import-Module <<<<  ".\GPOMigration" -Force
    + CategoryInfo          : ResourceUnavailable: (.\GPOMigration:String) [Import-Module], FileNotFoundException
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

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-GPOExport.ps1:75 char:16
+ Start-GPOExport <<<<  `
    + CategoryInfo          : ObjectNotFound: (Start-GPOExport:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
ASKER CERTIFIED SOLUTION
Avatar of Miguel Angel Perez Muñoz
Miguel Angel Perez Muñoz
Flag of Spain image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial