question

sr-5695 avatar image
0 Votes"
sr-5695 asked ·

Powershell query to find all GPO's linked to Active Directory site

Hello,

I have to check if some group policies are applied. The group policies are mostly linked to Active Directory sites.
Is there a way to query all AD sites and get its linked group policies with Powershell?

Could not find any hints how to build such a query.

not-supported
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DSPatrick avatar image
0 Votes"
DSPatrick answered ·

Some of these may help or you can also modify to suit your needs.

https://gallery.technet.microsoft.com/scriptcenter/site/search?query=list%20gpos&f%5B0%5D.Value=list%20gpos&f%5B0%5D.Type=SearchText&ac=4

--please don't forget to Accept as answer if the reply is helpful--


Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management


Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.


· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ManuPhilip avatar image
0 Votes"
ManuPhilip answered ·

Hi,
gpresult /r will help you to get a detailed list of group policies applied over.

Also check options such as
gpresult /r /scope:user
gpresult /r /scope:computer



Please mark as "Accept the answer" if the above steps helps you. Others with similar issues can also follow the solution as per your suggestion

Regards,

Manu

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RoyLi-MSFT avatar image
0 Votes"
RoyLi-MSFT answered ·

Hello,

Welcome to Microsoft Q&A!


Currently, Microsoft Q&A supports the products listed over here: supported topics (more to be added later on).

There is a better place you could ask your question about PowerShell - Windows PowerShell Forum.


Thank you.


· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.