07.22.10

Backing up and restoring the Local GPO

Posted in General Stuff, Microsoft-Related, Security Policy, Security-related at 10:02 pm by Administrator

Some of you may have seen a twitter post I did a while back letting folks know about the Security Compliance Manager, which is a tool from Microsoft that lets you manage, edit, report, search and export security templates and baselines. This tool is pretty cool, but it also has a hidden gem in it. When you install the SCM, you will notice a folder within its program group called “LocalGPO”, which contains a package called localgpo.msi. When you run that MSI it installs some files within a folder on your hard drive, and one of those files is a script called localgpo.wsf. What this script can do is pretty cool. It can do 3 things against your local GPO that I really like:

  1. It can backup your local GPO to a GPMC formatted backup. Which means you could backup a local GPO and then use GPMC to import it into a domain-based GPO.
  2. It can take a GPMC backup of GP settings and import them into a local GPO on a machine.
  3. It can restore a local GPO to its default state.

These are three great features for managing the local GPO. Let’s take a look at how to use each. For backing up the local GPO, the syntax is simple:

From a command shell, I simply type:

cscript LocalGPO.wsf /path:c:\gpbackups /export

Where c:\gpbackups is a path to where I want to store my backup and /export tells the script to export my local GPO settings.

Now if I want to import a GPMC backup into my local GPO, the syntax is even easier. I simply provide the path to the GUID-Named folder that GPMC creates under the backup directory when you back up a GPO, like this:

cscript LocalGPO.wsf /path:C:\gpbackups\{42ADD8FE-EDF6-479B-92C6-557343D8D091}

And, to restore a local GPO to its default config:

cscript LocalGPO.wsf /restore

Pretty easy to use and this script seems to support every OS from XP to Win7. A couple of caveats however. In looking at the script, Microsoft is only supporting Administrative Templates and Security Policy within these backup and restore operations (understandable given the ship vehicle for this thing). So if you have other policies like Scripts or IE Maintenance within your local GPO, it won’t be captured. Also, the script does not appear to deal with the multiple local GPOs feature supported in Win Vista and above. So if you have per-user local GPOs, they are not captured–only the default local GPO.

That being said the script does provide some good basic functionality as well as a good instructional document on how to capture and reset security settings from the local GPO (which are essentially stored in the local SAM rather than on the file system as in domain-based GPOs).

Hope this proves useful to you!

Darren

02.04.09

AGPM Planning Guide released

Posted in Microsoft-Related at 2:06 pm by Administrator

Just a quick note for those of you using or thinking about using Microsoft Advanced Group Policy Management (AGPM) product for Group Policy Change Control. MS has just released a planning guide for AGPM here:

http://www.microsoft.com/downloads/details.aspx?FamilyID=5ed2bcd7-214a-4606-8e91-369c3623ee89&DisplayLang=en

AGPM is another by-product of Microsoft’s acquisition of DesktopStandard (formerly known as GPO Vault) and is available as part of the Desktop Optimization Pack (MDOP) for MS Software Assurance customers. Its definitely a cool product and a must-have for shops looking to manage change within their GP environments.

Darren

 

Tags

Group Policy, AGPM

06.24.08

Opportunity for providing Microsoft feedback on Server Management

Posted in Microsoft-Related at 3:48 pm by Administrator

Hey Folks. The Group Policy Team at Microsoft is looking for feedback on managing Windows Servers. They’ve put a survey up online. If you want to get your feedback and experiences heard, and incorporated into future products, this is an ideal opportunity to do it! The survey is up until July 15th so get in there!