February 7th, 2013

PowerTip: Use PowerShell to Get a Listing of All GPOs in a Domain

Doctor Scripto
Scripter

Summary: Use a Windows PowerShell cmdlet from the RSAT tools to display all GPOs defined in a domain.

Hey, Scripting Guy! Question How can I get a listing of all the GPOs defined in my domain?

Hey, Scripting Guy! Answer Use the Get-GPO cmdlet from the RSAT tools. Instead of specifying a GPO name or GUID, use the –all switch, as shown here.

Get-GPO -all

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.