# Local Group policy module issue

**URL:** <https://forums.powershell.org/t/local-group-policy-module-issue/11367>\
**Category:** PowerShell Help\
**Created:** [September 24, 2018, 3:19pm UTC](https://forums.powershell.org/t/local-group-policy-module-issue/11367 "2018-09-24T15:19:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahul2012](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rahul2012](https://forums.powershell.org/u/rahul2012)\
**Post date:** [September 24, 2018, 3:19pm UTC](https://forums.powershell.org/t/local-group-policy-module-issue/11367/1 "2018-09-24T15:19:30Z")

</div>

I am new to powershell, I would like to update some of the local group policies using powershell. i am trying to import "policyfileeditor’ module and getting this error.

Any help will be highly appreciated.

PS C:&gt; Import-Module -Name PolicyFileEditor

Import-Module : The specified module ‘PolicyFileEditor’ was not loaded because no valid module file was found in any

module directory.

At line:1 char:1

- Import-Module -Name PolicyFileEditor

- 

```auto

```

- CategoryInfo : ResourceUnavailable: (PolicyFileEditor:String) [Import-Module], FileNotFoundException

- FullyQualifiedErrorId : Modules\_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

---

<div class="post-metadata">

**Author:** ![postanote](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@postanote](https://forums.powershell.org/u/postanote)\
**Post date:** [September 24, 2018, 6:54pm UTC](https://forums.powershell.org/t/local-group-policy-module-issue/11367/2 "2018-09-24T18:54:32Z")

</div>

This is not a default PS module. Install-Module, should just hit the MS PowerShellGallery to get it, but some folks have had issues with doing it that way.

You have to download and install it to use it.

Try this… Run as admin (the noisy way to see all of what is going on)

&nbsp;

```
Find-Module -Name PolicyFileEditor

Version Name Type Repository Description
------- ---- ---- ---------- -----------
3.0.1 PolicyFileEditor Module PSGallery Commands and....

Find-Module -Name PolicyFileEditor -Verbose | Save-Module -Path '$env:USERPROFILE\Documents\WindowsPowerShell\Modules' -Verbose -Force
Install-Module -Name PolicyFileEditor -Verbose -Force
```

Now, in some cases, a few have had issues even doing this this way on some systems, which often means this is an environmental issue.

---

<div class="post-metadata">

**Author:** ![rahul2012](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rahul2012](https://forums.powershell.org/u/rahul2012)\
**Post date:** [September 25, 2018, 8:57am UTC](https://forums.powershell.org/t/local-group-policy-module-issue/11367/3 "2018-09-25T08:57:59Z")

</div>

Thank you for the quick reply.

I downloaded policyfileeditor.3.0.0.nupkg and put it in my C:\temp but still was unable to import it.

---

<div class="post-metadata">

**Author:** ![js2010](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@js2010](https://forums.powershell.org/u/js2010)\
**Post date:** [September 25, 2018, 9:58am UTC](https://forums.powershell.org/t/local-group-policy-module-issue/11367/4 "2018-09-25T09:58:12Z")

</div>

```
Import-Module -Name c:\temp\PolicyFileEditor
```

---

<div class="post-metadata">

**Author:** ![postanote](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@postanote](https://forums.powershell.org/u/postanote)\
**Post date:** [September 25, 2018, 9:58am UTC](https://forums.powershell.org/t/local-group-policy-module-issue/11367/5 "2018-09-25T09:58:19Z")

</div>

All modules must be in the defined PS module path. because that is where PS will only look.

```
$env:PSModulePath
# https://docs.microsoft.com/en-us/powershell/developer/module/modifying-the-psmodulepath-installation-path
```

If you put it somewhere else you have to fully qualify the path to that location.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:34pm UTC](https://forums.powershell.org/t/local-group-policy-module-issue/11367/6 "2024-05-16T20:34:30Z")

</div>

Closed on May 16, 2024, 8:34pm UTC


