If the office account is already authorized as a local administrator on this PC, enter it in the UAC prompt as AzureAD\[Email]; this selects the Microsoft Entra authentication context rather than treating the name as a local account.
This format does not grant administrator rights—it only resolves the account correctly when that Entra identity already has local administrator permission. Since the credentials were already attempted normally, this is a different, low-risk test.
Identify the device’s join state and current permissions
Open a normal, non-administrator Command Prompt and run:
dsregcmd /status
whoami /groups
Record these fields from dsregcmd /status:
-
AzureAdJoined -
DomainJoined -
WorkplaceJoined -
AzureAdPrt
In whoami /groups, look for BUILTIN\Administrators. If it appears with Group used for deny only, that is normal for an administrator’s non-elevated UAC token and still indicates group membership.
Use the following routing:
| Join state | Device type | Required administration path |
|---|---|---|
AzureAdJoined : YES, DomainJoined : NO |
Microsoft Entra joined | Entra role or Intune policy |
AzureAdJoined : YES, DomainJoined : YES |
Microsoft Entra hybrid joined | Active Directory, Group Policy, or a hybrid-supported Intune policy |
AzureAdJoined : NO, DomainJoined : YES |
Active Directory domain joined | Domain IT, Group Policy, or LAPS |
AzureAdJoined : NO, WorkplaceJoined : YES |
Entra registered, not Entra joined | Existing local administrator or organizational management policy |
All three are NO |
Workgroup/local device | Existing local administrator or Windows recovery |
A UAC credential prompt normally appears for a standard user and requires credentials belonging to a valid administrator account; changing or disabling UAC does not create the missing permission.^1^
If the device is Entra joined only
An administrator with at least the Privileged Role Administrator role can assign the Microsoft Entra Joined Device Local Administrator role:
- Open the Microsoft Entra admin center.
- Go to Entra ID → Devices → All devices → Device settings.
- Select Manage Additional local administrators on all Microsoft Entra joined devices.
- Select Add assignments, choose the approved administrator, and select Add.
This option requires Microsoft Entra ID P1 or P2 and grants the role across all Entra-joined devices; it cannot be scoped to only this computer. Use it only if that tenant-wide scope matches organizational policy.^2^
After assignment, sign out and back in—not merely lock and unlock. Propagation can take up to four hours. To request an immediate Primary Refresh Token refresh, run:
dsregcmd /refreshprt
Wait one or two minutes, sign out, sign back in, and verify:
whoami /groups
BUILTIN\Administrators should now appear.^3^
If the device is hybrid joined or managed by Intune
Do not use the Entra Joined Device Local Administrator role as the device-level fix for a hybrid-joined PC. IT should use one of these approved mechanisms:
- Active Directory or Group Policy to manage the local Administrators group.
- Windows LAPS if the organization maintains a unique local administrator credential.
- Intune: Endpoint Security → Account protection → Create Policy → Windows → Local user group membership. For hybrid devices, select users with hybrid-supported identifiers such as a SID or
domain\username.^4^
The Intune profile supports Windows 10 20H2 or later and Windows 11. IT should check for conflicting Replace and Update rules because Replace takes precedence.
If no usable administrator remains
For an organization-owned or managed device, obtain IT approval before resetting it because this removes applications, settings, and potentially all local data.
From the Windows sign-in screen:
- Hold Shift while selecting Power → Restart.
- Select Troubleshoot → Reset this PC.
- Choose the retention/removal option approved by IT.
Microsoft’s supported guidance is that if no administrator account is available to change the affected account, the Windows device must be reset. Support cannot retrieve or bypass a lost administrator password.^5^
For escalation, provide IT with:
- The exact UAC rejection message or screenshot
- The three join-state values above
-
AzureAdPrtstatus - Whether
BUILTIN\Administratorsappears inwhoami /groups - Whether
AzureAD\[Email]was tested - Whether the device is managed by Intune, Autopilot, Group Policy, or LAPS
Do not send passwords, recovery keys, or authentication codes.
References
- How User Account Control works
- How to manage the local administrators group on Microsoft Entra joined devices
- No local administrator group privileges on Microsoft Entra joined device
- Account protection policy for endpoint security in Intune
- Change or reset your local account password in Windows | Microsoft Support