[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Group Policy Management Script Reporting on Domain Policy

Posted on 2008-06-24
9
Medium Priority
?
226 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 2000 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Question has a verified solution.

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

Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
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…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

873 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