Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

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
?
434 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

730 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