Solved

Powershell script error GPOMigration' was not loaded because no valid module file was found in any modu le directory. Please help

Posted on 2014-12-18
1
384 Views
Last Modified: 2014-12-23
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
0
Comment
Question by:creative555
1 Comment
 
LVL 19

Accepted Solution

by:
Miguel Angel Perez Muñoz earned 500 total points
ID: 40508678
Probably you will need group policy module, try running import-module grouppolicy command, you will need as least Win2008R2 DC: http://technet.microsoft.com/en-us/library/ee461027.aspx
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question