Go Premium for a chance to win a PS4. Enter to Win

x
?
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
Medium Priority
?
450 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 2000 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses

885 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