Zachary Loeber

I eat complexity and am never without a meal.

Gather Applied GPOs from Remote Systems With Powershell

Gather the applied GPO information for one or more systems using wmi, alternate credentials, and multiple runspaces. Function supports custom timeout parameters in case of wmi problems and returns GPO name, applied order, source, no override settings, and more. You can view verbose information on each runspace thread in realtime with the -Verbose option.

Version History

1.0.0 – 09/01/2013

  • Initial release

Notes

Only note for this function is that it was a plesant surprise to find out how easy it is to get applied GPO information on a system with powershell and wmi. It is really cool information to gather when troubleshooting GPO related issues or for better understanding your environment. I guess another note would be that I drop all the applie GPO information in an array of PSObjects as a noteproperty within the returned object (as AppliedGPOs). This is largely to make it easier to parse resulting output when being run against multiple systems concurrently (more releases coming soon which will better illustrate what I mean).

Downloads

Download the script from the technet gallery (more frequently updated)

Download the script from this site (less frequently updated)