Sunday, 26 July 2009

Loopback processing of Group Policy, explained.

Hi guys,

Today I want to write a few words about Loopback processing of Group Policy. When you deal with this setting for the first time it may be a little bit confusing. You can find explanations of this policy setting on the internet, but in my case I will try to explain everything in simple words.

As we know group policy has two main configurations, user and computer. Accordingly, the computer policy is applied to the computer despite of the logged user and the user configuration is applied to the user despite of the computer he is logged on.
For example we have a Domain, this Domain has two different organizational units (OU) Green and Red, Green OU contains a Computer account and Red OU contains User account. The Green policy, which has settings “Computer Configuration 2” and “User Configuration 2” is applied to the OU with the computer account. The Red policy, which has settings “Computer Configuration 1” and “User Configuration 1”, is applied to the OU with the User account. If you have a look at the picture below it will become clearer.



















If Loopback processing of Group Policy is not enabled and our User logs on to our Computer, the following is true:

















As we can see from the picture, the User gets Computer Configuration 2 and User Configuration 1. This is absolutely standard situation, where policies are applied according to the belonging to the OU. User belongs to the Red OU, he gets the Red User configuration 1 accordingly.

Now let’s enable the Loopback processing of Group Policy for the Green OU. In this case if the User logs on to the Computer, the policies applied in the following way:

















As we can see, now the User is getting User Configuration 2 despite of the fact that he belongs to the Red OU. So, what has happened in this scenario, the User Configuration 1 was replaced with the User Configuration 2, i.e. with the configuration applied to the Computer account.

As you have probably noticed, the picture above says “Loopback in replace mode”. I have to mention that the Loopback processing of Group Policy has two different modes, Replace and Merge. It is obvious that Replace mode replaces User Configuration with the one applied to the Computer, whereas Merge mode merges two User Configurations.




















In Merge mode, if there is a conflict, for example two policies provide different values for the same configuration setting, the Computer’s policy has more privilege. For example in our scenario, in case of the conflict the User Configuration 2 would be enforced.

In the real work environment Loopback processing of Group Policy is usually used on Terminal Servers. For example you have users with enabled folder redirection settings, but you do not want these folder redirection to work when the users log on to the Terminal Server, in this case we enable Loopback processing of Group Policy in the Policy linked to the Terminal Server’s Computer account and do not enable the folder redirection settings. In this case, once the User logged on to the Terminal Server his folder redirection policy will not be applied.

If you have any questions, feel free to ask me.

Thank you!

Kudrat

72 comments:

  1. First time i am understanding this! You've a great teacher!...Thanks alot.

    ReplyDelete
  2. I am glad it has helped you :-)

    ReplyDelete
  3. Perfect -- i now fully understand.. thank you very much

    ReplyDelete
  4. I have an issue where I have users on a domain but also have a terminal server Icon on the desktop. I want lock down polices on the terminal server session but not on the local machines. Is loopback the answerer here?

    ReplyDelete
  5. Hi,
    Mostly Loopback Processing is used for the Terminal Services Servers, in order to set policies User Configuration policies different from the normal environment. In your situation it really depends on what exactly you want to achieve. If by "lock down polices" you mean set different folder redirections or anything else related to the user configuration, then the answer is YES, loopback processing is what you need. But if you want to do something else, then, as I said, it really depends on the task.

    If you will have more questions about Terminal Services, please feel free to post your question here:

    http://social.technet.microsoft.com/Forums/ru-RU/winserverTS/threads

    Me and other IT professionals will be happy to help.

    ReplyDelete
  6. Thanks very much, really appreciate your help

    ReplyDelete
  7. Excellent example.. at last I get it.. many thanks

    ReplyDelete
  8. Amazing explanation.......

    ReplyDelete
  9. Hi Kudrat

    Once again thank you for the simple way you have explained this.

    I am puzzled by 'if there is a conflict, for example two policies provide different values for the same configuration setting, the Computer’s policy has more privilege.'

    I have a loopback 'merge' policy on the terminal server OU, where 'Hide Internet Explorer icon on desktop' is Not configured. I also have a policy on the users OU with 'Hide Internet Explorer icon on desktop' set to enabled.

    BUT when I log on as a user from that OU, Internet explorer icon is not hidden!

    Any ideas?

    Simon

    ReplyDelete
  10. Hi Simon,

    Thanks for your comment.
    Could you please try to set "Hide Internet Explorer icon on desktop" setting in the Terminal Services GPO to Disabled and see if it will resolve the problem.

    If you will have questions, could you please post them to this forum:


    http://social.technet.microsoft.com/Forums/ru-RU/winserverTS/threads
    Thanks,

    Kudrat

    ReplyDelete
  11. Is there any way to get 'Computer Configuration 1' to apply to the Green OU?

    I have a Computer Policy that I do not want to apply to a specific group of users.

    ReplyDelete
  12. Hi,

    Computer configuration is applied to the computers. Any user logged to that computer will be subject to that policy. Maybe in your case there is different possible solution. Can you post your configuration and task to this forum?

    http://social.technet.microsoft.com/Forums/ru-RU/winserverTS/threads

    There we can try to help you with the solution.

    Thanks,

    ReplyDelete
  13. This is by far the best example I've read so far. Right now I'm preparing for my 70-294 and this topic has been haunting me. I keep getting it wrong my practice exams!

    But hopefully not anymore!

    ReplyDelete
  14. Thank you!
    And good luck with your 70-294

    ReplyDelete
  15. From Brazil.

    Excelent tutorial ! Thanks !

    ReplyDelete
  16. that is very helpful thank you

    ReplyDelete
  17. I am glad it has helped.
    Thank you.

    ReplyDelete
  18. At last. I have a AD exam coming up and GP Loopback processing was really making my head hurt - I couldn't get the concept sorted out. Your explanation clicked after one read.

    Thanks a lot - top work.

    ReplyDelete
  19. Thanks very much, and good luck with your exam!

    ReplyDelete
  20. Hi, I have question, In the above given example you explained that how loop back processing works, But I want to know the name of GPO where we should enable loop back setting. Or we can create a separate GPO on computer OU and enable Loop Back setting. and if yes then will this GPO filter out all the user settings inherited from the parent GPOs?

    ReplyDelete
  21. Hi Neeraj,

    About the place to enable the policy take a look at this article: http://support.microsoft.com/kb/231287

    I would not recommend to set Loopback Processing on the default Computers OU. If you need to enable this policy for some computers, it would be a good idea to separate them in a different OU, it does not have to be under Computers OU.

    Also keep in mind that Computers OU contains computer objects and if the GPO linked to the Computers OU has any User settings they will not take effect on the logged in user unless you have Loopback Processing enabled.

    If you will have more questions about the Group Policy, please feel free to ask them in this forum: http://social.technet.microsoft.com/Forums/en/winserverGP/threads

    ReplyDelete
  22. hey man... perfect! can i translate this post and put in my blog, giving the credits for you?

    perg@tech4it.com.br
    http://blog.tech4it.com.br

    JMB

    ReplyDelete
  23. Hi,

    Yes sure, if it helps other people I am always happy to help.

    Thanks,

    ReplyDelete
  24. I read many articles and never understood it clearly until i read this article. Thnks alot!
    Bastiaan

    ReplyDelete
  25. brilliantly explained

    ReplyDelete
  26. Great and very helpful Explanation!

    ReplyDelete
  27. dall'Italia... Grazie davvero! Esempio chiarissimo! Thanks! Michele CMV

    ReplyDelete
  28. Hi Kudrat,
    I am facing a situation where I need to disable the shutdown option for a group of people. Unfortunately I am dealing with 70 plus servers and some of these users have local admin access on the servers.
    How would I tackle this issue?? Any help is much appreciated.

    ReplyDelete
  29. Hi,

    Thanks for your question. It is a bit inconvenient to discuss it here, so if you could publish your question on this forum would be good:

    http://social.technet.microsoft.com/Forums/hu-
    HU/winserverTS/threads

    Thanks,

    ReplyDelete
  30. How nicely explained. Even a layman can understand this. Thankyou

    ReplyDelete
  31. hi, that's a clear explanation. Thanks a lot.

    ReplyDelete
  32. Thanks Kundrat to take the time to explain this without taking anything in return.

    TaD

    ReplyDelete
  33. Not at all, glad it has helped.

    ReplyDelete
  34. Nice.
    Thank you.

    ReplyDelete
  35. Hi Kudrat

    This is very good explanation and easy to understand. Thanks....

    ReplyDelete
  36. If only knowledge base articles were this clear and to the point. Excellent Job Kudrat!

    The only thing you should add is where to find the loopback processing option, and the fact that it is enabled individually per GPO.

    It's found in EACH GPO under: Computer Configuration, Policies, Administrative Templates, System, Group Policy,"User Group Policy loopback processing mode"


    Bravo!

    ReplyDelete
  37. Very good explanation! Made everything clear for me! thanks!

    ReplyDelete
  38. this is the first time i have ever understood this!! thank you!! you have saved my brain :)

    ReplyDelete
  39. Thanks a lot!!!! First time I understood........

    ReplyDelete
  40. Thanks guys, glad it helped you.

    ReplyDelete
  41. A very good explanation...Kudos !!

    ReplyDelete
  42. Even 3 years after your original post... You continue help someone to understand the loopback processing. Thank you for your help.

    ReplyDelete
  43. Wow.. Loved to read these red and green codes. After 3-4 years I got clear concept.

    ReplyDelete
  44. Thank you for making this clear :)

    ReplyDelete
  45. Nicely explained.. Great

    ReplyDelete
  46. nice one dude!! i was totolly confused with this one.!! thanks.. :))

    ReplyDelete
  47. This is like someone has just switched the light on! I knew Loopback Processing existed (and I still think the title of it sucks!) but I couldn't quite grasp what it was all about.

    Now I really think I get it! It's a Eureka moment!! And it will help achieve what I may need it to (depending on a business decision that needs to be made).

    Thank you, Kudrat.

    JJ

    ReplyDelete
  48. Thanks a lot, greate explanation.

    ReplyDelete
  49. one of the best documents I read in a long time. Thank you

    ReplyDelete
  50. I truly thank you for this article!!! You've helped us setup TS policies in our environment as everywhere else on the net, it was very confusing.

    ReplyDelete
  51. Thank you Kudrat, you are GEM!!

    ReplyDelete
  52. Atlast I understood it now. Thanks a lot brother. This page should appear first when we google "Loop Back Policy"

    Thomas C

    ReplyDelete
  53. Guys,

    Some you you ask questions which require quite long answers, I am afraid I cannot do this here.
    If you have problems requiring deeper anaysis please post your questions here: http://social.technet.microsoft.com/Forums/en-US/categories

    Thanks,

    ReplyDelete
  54. Thanks..!! Great Work..

    ReplyDelete