Forum Discussion

Diego-Gonzalez's avatar
May 08, 2023

Advanced Hunting

Find out who are the local administrators of the devices through the hunting function in microsoft defender for endpoint.

1 Reply

  • 0fflinedocs's avatar
    0fflinedocs
    Brass 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

Resources