Solved

Group Policy Management Script Reporting on Domain Policy

Posted on 2008-06-24
9
205 Views
Last Modified: 2010-03-17
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
0
Comment
Question by:neoptoent
  • 5
  • 4
9 Comments
 
LVL 30

Accepted Solution

by:
LauraEHunterMVP earned 500 total points
ID: 21859550
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
 

Author Comment

by:neoptoent
ID: 21859715
Do I need to run that on the AD server?
I get a  (46,18) <null>a referrel was returned for the server
0
 

Author Comment

by:neoptoent
ID: 21859764
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
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
LVL 30

Expert Comment

by:LauraEHunterMVP
ID: 21859774
Offset the name with quotation marks.
0
 

Author Comment

by:neoptoent
ID: 21859776
space sorry for the typo
0
 

Author Comment

by:neoptoent
ID: 21859812
Great it is working, Now what is the best way to schedule this?
0
 
LVL 30

Expert Comment

by:LauraEHunterMVP
ID: 21859826
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
 

Author Comment

by:neoptoent
ID: 21859861
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
 
LVL 30

Expert Comment

by:LauraEHunterMVP
ID: 21859891
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

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
This article explains the steps required to use the default Photos screensaver to display branding/corporate images
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question