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?
 
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
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.