Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions queries/All GPOs applied to a specific computer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: All GPOs applied to a specific Computer
guid: 1d75a21e-0d34-40c5-9360-281b60737d87
prebuilt: false
platform: Active Directory
category: Domain Information
description: View all GPOs that are applied to any specific computer. This query identifies GPOs that are applied at both the Domain Level and the OU level, saving time in large Active Directory environments where GPO inheritance is complex. Replace "COMPUTER_NAME" with the target computer name or a substring. Note this does not take OU 'Block inheritance' and GPO 'No Override' into account.
query: |-
MATCH p=(c:Computer)<-[:Contains*..]-(:OU)<-[:GPLink]-(:GPO)
WHERE c.name CONTAINS "COMPUTER_NAME"
RETURN p
revision: 1
resources:
- https://learn.microsoft.com/en-us/previous-versions/windows/desktop/Policy/overriding-and-blocking-group-policy
acknowledgements: Adnan Ullah Khan, @auk0x01
Loading