January 2008 Entries

What GPOs applied to this machine?

I was asked earlier today to come up with a list of what GPOs applied to a given box. Simple enough given the code from one of the previous posts to ask AD what GPOs apply to the machine's OU, but I'm not convinced there's more to it than that. Senior coder had started going through GetGPOList(), FreeGPOList(), and GetAppliedGPOList() but they didn't really play well in C# from an interop standpoint. I'll likely give them a try at a later time. Instead, today I went looking through the registry and...