1

I'm trying to use the Get-GPO PowerShell module. So I installed RSAT first, but the GroupPolicy module is still missing:

PS C:\Users\admin\Desktop> Install-WindowsFeature RSAT

Success Restart Needed Exit Code      Feature Result
------- -------------- ---------      --------------
True    No             NoChangeNeeded {}


PS C:\Users\admin\Desktop> Import-Module grouppolicy
Import-Module : The specified module 'grouppolicy' was not loaded because no valid module file was found in any module
directory.
At line:1 char:1
+ Import-Module grouppolicy
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (grouppolicy:String) [Import-Module], FileNotFoundException
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

PS C:\Users\admin\Desktop>

How do I install the GroupPolicy module?

SamErde
  • 3,409
  • 3
  • 24
  • 44
daisy
  • 747
  • 4
  • 14
  • 30

1 Answers1

4

You are very close. The Group Policy tools used to be installed as a subset of RSAT and I believe some documentation still states that.

Just run Install-WindowsFeature GPMC and you will get the Group Policy Management Console and the Group Policy PowerShell module installed.

SamErde
  • 3,409
  • 3
  • 24
  • 44