Avatar of Isaias Perez
Isaias Perez
Flag for United States of America asked on

Active Directory - Audit Group Policy

I would like to perform a group policy audit on my Primary DC. My hope is to clean up group policy and check to see what we no longer need and can get rid off. What is the best way to accomplish this? Is there a tool or powershell script i can run?
* grouppolicy* group policy objectActive Directory

Avatar of undefined
Last Comment
Isaias Perez

8/22/2022 - Mon
Robert

The following would likely be a good starting point.
It will generate a report of all your GPO's
Import-Module GroupPolicy
Get-GPOReport -All -ReportType Html -Path C:\Temp\AllGPOsReport.htm

Open in new window

Isaias Perez

ASKER
This is the error message i get when trying to run that.

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

Open in new window


 
ASKER CERTIFIED SOLUTION
Robert

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Isaias Perez

ASKER
Thank you. Found this article that helped with RSAT installation on my version of Windows 10.

https://www.microsoft.com/en-us/download/details.aspx?id=45520
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23