Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The specified module 'grouper.ps1' was not loaded because no valid module file was found in any module directory #6

Closed
mxm0z opened this issue Feb 9, 2018 · 3 comments

Comments

@mxm0z
Copy link

mxm0z commented Feb 9, 2018

I couldn't do the Import-Module command. I generated the report on my AD Server and I tested on my own computer. It appeared the following error:

The specified module 'grouper.ps1' was not loaded because no valid module file was found in any module directory.
Line: 1 Character:14

  • CategoryInfo : ResourceUnavailable: grouper.ps1:String [Import-Module], FileNotFoundException
  • FullQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PoweShell.Commands.ImportModuleCommand

My system: Windows 7 Pro x64

I also tested the importing on the AD Server Powershell Terminal and I got the same error. The only difference was that:
...
Line: 1 Character:1
...

My AD Server system: Windows Server 2012 R2 Standard

@l0ss
Copy link
Owner

l0ss commented Feb 9, 2018

It looks like you've done

Import-Module grouper.ps1

which doesn't tell PS where to find the module file. If it's in the current working directory, you need to do:

Import-Module .\grouper.ps1

otherwise you'll have to tell it the full path:

Import-Module C:\users\administrator\desktop\grouper.ps1

Let me know how you go.

@l0ss
Copy link
Owner

l0ss commented Feb 10, 2018

Just realised I typed it wrong in the README. Fixing that now.

@l0ss
Copy link
Owner

l0ss commented Feb 10, 2018

problem in documentation - reopen if specifying path properly doesn't fix.

@l0ss l0ss closed this as completed Feb 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants