Forum Discussion
May 08, 2023
Advanced Hunting
Find out who are the local administrators of the devices through the hunting function in microsoft defender for endpoint.
0fflinedocs
May 16, 2023Brass Contributor
You can use this query to find local admin logins on a device, summarizing device name and account name:
DeviceLogonEvents
| where IsLocalAdmin == 1
| project DeviceName, AccountDomain, AccountName, LogonType, ActionType
| summarize count() by DeviceName, AccountName
DeviceLogonEvents
| where IsLocalAdmin == 1
| project DeviceName, AccountDomain, AccountName, LogonType, ActionType
| summarize count() by DeviceName, AccountName