programming4us
 
Windows
 

Windows Server 2008 : Group Policy Overview - Using Loopback Processing, Running Scripts with Group Policy

1/7/2014 7:58:01 PM

1. Using Loopback Processing

Group Policy settings applied to users normally take precedence over Group Policy settings that apply to computers. As a reminder, the last Group Policy that is applied is the one that takes precedence. Because a computer boots up before a user can log on, the Group Policy settings for the computer is applied first, and the Group Policy settings for the user are applied last.

Note

A simple way of understanding loopback processing is that it ensures that the policies applying to the computer take precedence over the policies applying to the user. For example, if you want to enable folder redirection for users ONLY when they log on to terminal servers, you can enable loopback processing in a GPO that applies to users only when they log on to computers in the terminal server OU.


However, there are times when you want this reversed. In other words, you want the Group Policy settings for the computer to take precedence over the Group Policy settings for the user. You can do so by enabling Loopback Processing. Figure 1 shows the location of this setting.

Figure 1. Enabling Loopback Processing

2. Running Scripts with Group Policy

You can write scripts and have them automatically run through Group Policy. The great strength of this is that you write and configure the script once, and it runs on all the computers in your domain or all the computers in a specific OU, depending on where you link the GPO holding the script.

Figure 2 shows the locations of these GPO settings and the following table explains them.

Group Policy Script EventsComments
Computer StartupThe script runs when the computer starts. The Group Policy setting for a domain GPO is in the Computer Configuration, Policies, Windows Settings, Scripts node.
Computer ShutdownThe script runs when the computer shuts down. The Group Policy setting for a domain GPO is in the Computer Configuration, Policies, Windows Settings, Scripts node.
User logonThe script runs when the user logs on. The Group Policy setting for a domain GPO is in the User Configuration, Policies, Windows Settings, Scripts node.
User logoffThe script runs when the user logs off. The Group Policy setting for a domain GPO is in the User Configuration, Policies, Windows Settings, Scripts node.

Figure 2. Group Policy settings for scripts

Scripts can run either synchronously or asynchronously.

Script Behavior TypesComments
SynchronousScripts run one after the other. Users cannot interact with the system until all scripts have completed.
AsynchronousMultiple scripts run at the same time. User can interact with system before the scripts have completed.

All scripts run asynchronously by default on Windows Server 2008 and Windows Server 2008 R2. This includes both computer startup and user logon scripts.

Tip

The default behavior for computer startup and user logon scripts before Windows Server 2008 was synchronous. Users could not interact with the system until all scripts completed. However, computers boot quicker with this set to asynchronous and the behavior is changed in Windows Server 2008, Server 2008 R2, Windows Vista, and Windows 7. You can modify the new default behavior if needed.

 
Others
 
- Windows Server 2008 : Group Policy Overview - Blocking Inheritance, Enforcing GPOs
- Windows 7 : Updating Software - How to Remove Updates
- Windows 7 : Updating Software - How to Troubleshoot Problems Installing Updates
- Windows 7 : Updating Software - How to Verify Updates
- Windows 7 : BitLocker (part 4) - How to Disable or Remove BitLocker Drive Encryption, Troubleshooting BitLocker Problems
- Windows 7 : BitLocker (part 3) - How to Manage BitLocker Keys on a Local Computer, How to Recover Data Protected by BitLocker
- Windows 7 : BitLocker (part 2) - How to Enable BitLocker Encryption
- Windows 7 : BitLocker (part 1) - How to Use BitLocker with TPM Hardware
- Windows 7 : Encrypting File System (part 3) - How to Recover to an EFS-encrypted File Using a Data Recovery Agent
- Windows 7 : Encrypting File System (part 2) - How to Grant an Additional User Access to an EFS-encrypted File , How to Import Personal Certificates
 
 
REVIEW
 
- First look: Apple Watch

- 10 Amazing Tools You Should Be Using with Dropbox

- Sigma 24mm f/1.4 DG HSM Art

- Canon EF11-24mm f/4L USM

- Creative Sound Blaster Roar 2

- Alienware 17 - Dell's Alienware laptops

- Smartwatch : Wellograph

- Xiaomi Redmi 2
 
VIDEO TUTORIAL
 
- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 1)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 2)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 3)
 
Popular tags
 
Video Tutorail Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS
 
Top 10
 
- How To Install Android Market & Google Apps On Kindle Fire
- How To Make Ubuntu Look Like Windows 7
- How To Add A New Account in MS Outlook 2013
- Get Android & Mac OS X Style Gadgets For Windows 7 & Windows 8 With XWidget
- How To Activate Microsoft Office 2013
- How To Install Actual Facebook App On Kindle Fire
- How To Create, View And Edit Microsoft Office Files On Kindle Fire
- Download Attractive Business PowerPoint Templates For Free At SlideHunter
- How To Use And Enable Hibernate & Sleep Mode In Windows 8
- How To Get Microsoft Office 2013 Trial Product Key From Microsoft