Group Policy Management Script Reporting on Domain Policy

Weekly I must use the MMC, use the group policy management tool

Click on the Group policy I am looking to report on "domain policy" and then save the report

Is there any way I can do this with a script automatically weekly and save the report wherever I want.
Please keep in mind I will be running this off an XP machine against my AD

Thanks
neoptoentAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
LauraEHunterMVPConnect With a Mentor Commented:
Look for the GetReportsForGPO.wsf file in the Program Files\GPMC\Scripts folder - built-in and will do what you are describing from the command-line.  getreportsforgpo.wsf /? will give you the full syntax, I think you need to enter the friendly name of the GPO that you want a report of, followed by the pathname that you want the report saved to. (Don't have GPMC in front of me right now or I'd verify.)
0
 
neoptoentAuthor Commented:
Do I need to run that on the AD server?
I get a  (46,18) <null>a referrel was returned for the server
0
 
neoptoentAuthor Commented:
I got past that error, when i try to type in the GPO name it gives me an error beacuse there is a space in the word

How can I enter it with a sapce?
0
Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

 
LauraEHunterMVPCommented:
Offset the name with quotation marks.
0
 
neoptoentAuthor Commented:
space sorry for the typo
0
 
neoptoentAuthor Commented:
Great it is working, Now what is the best way to schedule this?
0
 
LauraEHunterMVPCommented:
Create a scheduled task on a server/workstation that has GPMC installed and that will be online at the time you want the job to run.
0
 
neoptoentAuthor Commented:
Ok so then I have another question.

This job is going to run weekly to the same folder. I dont want it to replace the old one when it runs.. Is there a way for me to have it include the date in the name so that it is different each time it runs?

Zach
0
 
LauraEHunterMVPCommented:
The built-in script is WYSIWYG, you would need to save a copy of it and customize in order to modify its behavior as you are describing. You can open the wsf file in notepad and see if you can figure out how to modify the name of the file that's being output.
0
All Courses

From novice to tech pro — start learning today.