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
353 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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This article will show, step by step, how to integrate R code into a R Sweave document
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
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 …

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now