MSP StockroomFind a guide, template or tool…/
Curated SOPs / Endpoints

END Curated SOP / Endpoints

Review who is a local administrator on a Windows device

List every account and group that has administrator rights on a client's Windows device, and record where each one comes from.

Low risk / Read-only / Reviewed December 2, 2026

Written and maintained by MSP Stockroom. Nobody else edits it.

On this page

Before you run anything: read every command first and understand what it does. Replace example names, domains and addresses with your own. Try it on a test device or tenant before a client's. Keep client names, passwords and keys out of tickets and chat.

Purpose

List every account and group that has administrator rights on a client's Windows device, and record where each one comes from. A user who is a local administrator can turn off security tools, install anything, and give malware the same rights. Extra administrators build up quietly: the person who joined the device, a helpdesk account from a past provider, a group someone added for one job. Run it at onboarding on a sample of devices, after any incident, and at each security review. Read-only: nothing in this SOP changes the device.

Scope and prerequisites

  • Run by the client's assigned engineer, on the device itself or through your RMM tool's remote shell.
  • An elevated Windows PowerShell 5.1 session (64-bit; the LocalAccounts module is not in 32-bit PowerShell on 64-bit Windows).
  • Know how the device is joined: on-premises Active Directory, Microsoft Entra joined, or hybrid. Step 1 tells you if you are not sure.
  • Store the results in your documentation platform, never in this library.

Steps

  1. Check how the device is joined:
    dsregcmd /status | Select-String 'AzureAdJoined', 'DomainJoined'
  2. List the members of the local Administrators group. The group is found by its well-known SID, so this works on non-English Windows too:
    Get-LocalGroupMember -SID 'S-1-5-32-544' |
        Select-Object Name, ObjectClass, PrincipalSource, SID

    If the command fails with an error about comparing elements, the group holds an account Windows can no longer resolve, often a deleted domain or cloud account. Use the older command instead, and record that an orphaned account is present:

    net localgroup Administrators
  3. Sort every member into one of these and record it:
    • The built-in Administrator account (its SID ends in -500). Note whether it is enabled and whether its password is managed by Windows LAPS.
    • Your own documented admin account or group for this client. Expected.
    • Domain Admins (on-premises domain joined devices). Expected.
    • Microsoft Entra roles on Entra joined devices: these show as SIDs starting S-1-12-1-. One is the Global Administrator role and one the Microsoft Entra Joined Device Local Administrator role. Expected, but check who holds those roles in the tenant.
    • A named everyday user, often the person who joined the device to Entra ID. Review.
    • Anything you cannot explain, including accounts from a previous provider. Review.
  4. Check whether the built-in Administrator account is enabled:
    Get-LocalUser | Where-Object { $_.SID.Value -like '*-500' } |
        Select-Object Name, Enabled, PasswordLastSet

Verify

Each member of the local Administrators group on the checked devices is listed with its source, and every member marked review has an owner and a decision from the client.

Rollback

Nothing to roll back; this SOP only reads. Removing someone from the Administrators group is a separate change, made with the client's approval. Confirm first that your own admin access still works without that account, so you do not lock everyone out.

Notes

On Microsoft Entra joined devices, by default the user who joins the device becomes a local administrator; the tenant's device settings control this. Changes to the Entra Joined Device Local Administrator role can take up to 4 hours and a fresh sign-in to reach a device. See https://learn.microsoft.com/entra/identity/devices/assign-local-admin for Microsoft's guidance.

Sources and notes

Curated SOP from the MSP Stockroom SOP library (curated/endpoints/review-who-is-a-local-administrator-on-a-windows-device.md). Last reviewed December 2, 2026. Tested on: Not yet run; written for Windows 10 and 11; Windows PowerShell 5.1. Vendor screens and commands change; check the vendor documentation before you rely on a step. Found a mistake? See corrections.

Search the stockroom

↑ ↓ to choose · Enter to open · Esc to close

Open the full search page →