Archive for June 2010

Group Policy Setting of the Week 29 – Assign a default domain for logon

This weeks setting is a native policy for Windows Vista (or greater) called “Assign a default domain for logon”. As the name suggest it configured the default domain name when a user logs on to the computer. This is very handy in a multi domain environment or if you want to make sure that your newly built computer default to the correct domain when the users logon for the first time. This setting can be found under Computer Configuration > Administrative Templates > System > Logon and it requires requires at least Windows Vista.

image

image

How to set Default Logon Domain Name for Windows XP via Group Policy

Its nice that this is now a native policy as you use to have to set the registry manually for you to set this option in Windows XP but I often find that this method is very often hit an miss. If you do want to try configuring this for Windows XP you could set it via Group Policy Preferences then here are the key you would set

Key: HKLM\software\microsoft\windows nt\currentversion\winlogon\
Value: altdefaultdomainname (REG_SZ)
Data: DOMAINNAME

and

Key: HKLM\software\microsoft\windows nt\currentversion\winlogon\
Value: defaultdomainname (REG_SZ)
Data: DOMAINNAME

How to mitigate Windows Help Security Issue KB2219475 with Group Policy

A Google Engineer recently irresponsibly disclosed to the public after only warning Microsoft 5 days earlier of a vulnerabilities that allows a malicious third-party to take advantage of a security issue with the Help and Support Center in Windows XP/2003 after. As a result this has left many users (and organisations) open to attack using this exploit. Thankfully Microsoft have quickly responded and they have published an security advisory (http://www.microsoft.com/technet/security/advisory/2219475.mspx) about this issue with workaround instructions while they are working on a security fix.

Update: This security vulnerability is now being actively used by hackers.

For your benefit I have written instructions below showing you how you can mitigate this security issue using Group Policy Preferences. As this workaround involves in deleting a registry key (and sub-keys) I have also put in instructions on how to backup and restore this key after you have deployed a the fix for this issue in your organisation.

How to backup the affected registry

In these steps you will create a registry keys backup file for later use to restore the functionality of the Help and Support Center after you are deploy the related hotfix. Normally you can backup the registry using the Registry Wizard in Group Policy Preferences however this is a Windows XP specific key and you cannot remotely import a HKEY_CLASSES_ROOT remotely via Group Policy Management Console therefore we need to Export (a.k.a backup) the registry key via the traditional Regedit method.

Step 1. Go to a Windows XP computer that you want to use for a template to backup the registry.

Step 2. Run Regedit and navigate to the HKEY_CLASSES_ROOT\HCP key then click on File and then Export

image

Step 4. Save the registry as key a file (example HCP_Backup.reg)

image

Note: Keep this file safe as you will need it to restore the HCP key once you have deployed the hotfix.

How to delete the HCP registry key

These instruction will show you how to delete the HKEY_CLASSES_ROOT\HCP key that is the suggested workaround to this security issue.

Step 1. Create a new Group Policy Object that is targeted to the computer object you want to apply this workaround.

Step 2. Navigate to Computer Configuration > Preferences > Windows Settings > Registry and then from the menu click on Action > New > Registry Item

image

Step 3. Select Delete from the Action pop-down menu and then HKEY_CLASSES_ROOT from the HIVE: menu and type HCP in the Key Path:

image

Step 4 (Optional): Then click on the Common Tab and tick Apply once and do not reapply.

image

Note: Doing this will allow you to restore the functionality for selected users if required by simply running the previously

The HCP functionality will now be broken when you click on any HCP:// link. While this is not an often used feature of Windows XP I have seen it some organisations that use a link to the just straight to the “Offer Remote Assistance” feature.

How to restore the HCP registry key

Once Microsoft releases an security hotfix for this issues then you may want to restore the registry key we deleted above. Unfortunately (as I mentioned before) we are not able to easily import the registry key using the “Registry Wizard” option of Group Policy Preferences as you can only import HKLM_CLASSES_ROOT keys locally on a PC. Therefore we will need to use a logon script (OH NO!!!) to import the original HCP keys.

Step 1. Edit the same GPO that you previously deleted the HCP key.

Step 2. Navigate to Computer Configuration > Windows Settings > Scripts (Startup/Shutdown) and double click on Startup in the right hand pane.

image

Step 3. Click on Show files…

image

Step 4. Paste a copy of the HCP_Backup.reg file we created in the backup steps then close the folder.

image

Step 5. Back on the Startup Properties windows click on the Add… button.

Step 6. Type regedit.exe in the Script Name: field and /s HCP_Backup.reg in the Script Parameters: field then click OK

image

This will now import the backup registry key the next time the computer reboots.

image

Step 7 (CLEAN UP). Finally go navigate to Computer Configuration > Preferences > Windows Settings > Registry in the Group Policy Management Editor and either disable or delete the HCP Delete key preference item previously created.

Hope it helps…

AGPM Part 7: How to makes changes to existing uncontrolled GPO’s in AGPM

This post is part of a series of posts about Advanced Group Policy Management. If you want to see the other post in this series you can use the links below:

  1. Introduction to Advanced Group Policy Management (a.k.a AGPM) v4
  2. How to install the Advanced Group Policy Management Client v4
  3. How to install the Advanced Group Policy Management (AGPM) Server v4
  4. How to configure the AGPM client via Group Policy to automatically connect to the AGPM server
  5. Delegating permission to Review/Edit GPO’s in AGPM
  6. How to create make changes to Group Policy Objects in AGPM
  7. How to makes changes to existing uncontrolled GPO’s in AGPM

Editing existing uncontrolled GPO’s in AGPM

If you are deploying AGPM into an existing environment (and you probably are) then you will probably want to editing you existing GPO’s. Any GPO that is not managed by AGPM is called an “Uncontrolled” GPO and as such will not be touched until it is specifically made into a “Controlled” policy.

Step 1. Logon as Alan to a computer that has GPMC and the AGPM client

Step 2. Open GPMC and click on Change Control and then then Uncontrolled tab then right click on the GPO you want to “Control” and then click on Control…

 

image

 Step 3. Add a comment to the GPO as its initial comment then click OK

 

image

This Group Policy is now “controlled”

 image

Hopefully this has series given you enough of an introduction to AGPM to get it installed and start to perform basic changes and approvals to GPO setting …

If you want more information on Advanced Group Policy Management then here is a list of link to pages I have found useful:

Microsoft MDOP Blog
TechNet: Overview of Advanced Group Policy Management
TechNet: A Video tour of Advanced Group Policy Management
TechNet: Technical Overview of AGPM
TechNet: What’s New in AGPM

TechNet: Choosing Which Version of AGPM to Install
TechNet: Step-by-Step Guide for Microsoft Advanced Group Policy Management 4.0
TechNet: Operation Guide for Microsoft Advanced Group Policy Management 4.0
Group Policy Blog: Importing and Exporting with AGPM

AGPM Part 6: How to create make changes to Group Policy Objects in AGPM

This post is part of a series of posts about Advanced Group Policy Management. If you want to see the other post in this series you can use the links below:

  1. Introduction to Advanced Group Policy Management (a.k.a AGPM) v4
  2. How to install the Advanced Group Policy Management Client v4
  3. How to install the Advanced Group Policy Management (AGPM) Server v4
  4. How to configure the AGPM client via Group Policy to automatically connect to the AGPM server
  5. Delegating permission to Review/Edit GPO’s in AGPM
  6. How to create make changes to Group Policy Objects in AGPM
  7. How to makes changes to existing uncontrolled GPO’s in AGPM

Creating and Editing GPO’s in AGPM

Now you are going to logon as John and create a fresh new Controlled GPO to have it then approved by Alan.

Step 1. Logon as John to a computer that has GPMC and the AGPM client

Step 2. Open GPMC and right click on Change Control and then click on New Controlled GPO…

 

image

Step 3. Fill in the submission field so that an email will be sent to the AGPM administrator to review the New Controlled GPO Request then click Submit

 

image

Step 4. Click Close

 

Note: In this example I don’t have a mail serve configured so the sending the of the email failed.

image

Step 5. Click on the Pending Tab. You can now see the Pending request waiting for approval.

image

Now we will approve the New Controlled GPO request.

Step 6. Logon as Alan to a computer that has GPMC and the AGPM client

Step 7. Open GPMC and right click on Change Control then click on the Pending tab and the right click on the pending request and click on Approve…

 

image

Step 8. Add a comment before you confirm the Approval action then click Yes

 

image

Step 9. Wait for it to Approve and then click Close

 

image

Note: It is this stage that Alan can link the GPO manually to the Organisational Unit (OU).

NEXT > How to makes changes to existing uncontrolled GPO’s in AGPM

AGPM Part 5: Delegating permission to Review/Edit GPO’s in AGPM

This post is part of a series of posts about Advanced Group Policy Management. If you want to see the other post in this series you can use the links below:

  1. Introduction to Advanced Group Policy Management (a.k.a AGPM) v4
  2. How to install the Advanced Group Policy Management Client v4
  3. How to install the Advanced Group Policy Management (AGPM) Server v4
  4. How to configure the AGPM client via Group Policy to automatically connect to the AGPM server
  5. Delegating permission to Review/Edit GPO’s in AGPM
  6. How to create make changes to Group Policy Objects in AGPM
  7. How to makes changes to existing uncontrolled GPO’s in AGPM

Delegating permission in AGPM

This section show you how to delegate permission to a user to either review or edit group policy object via AGPM.

Step 1. Open GPMC on a computer that you have installed the AGPM client on.

Step 2. Navigate and click on Change Control option and then the Domain Delegation tab then click Add

 

image

Step 3. Select the user John and then select the Editor from the role field then click OK

 

image

John now has Reviewer/Edit access to AGPM (that was easy!).

image

NEXT > How to create make changes to Group Policy Objects in AGPM