Skip to content
  • There are no suggestions because the search field is empty.

Add an Entra ID user to the local Administrators group

If post migration you need to add a user to be a local admin to an Entra Joined device you can log in as a local Admin yourself. From an elevated command prompt you can run:

net localgroup  administrators "AzureAD\[EntraIduserPrincipalName]" /add

e.g.
net localgroup administrators "AzureAD\donald.duck@contoso.t2t.dev" /add

1-NetCmd

 

When you look in the Local Admins Group you will now see:

2-Administrators

You can also add this to a Post Migration script in your Runbook.

 

Migrating many devices?

PowerSyncPro Migration Agent can run this command for you as a post-migration script in the runbook, so every device you move to Entra ID gets the right local administrators. Try it with 5 free licences for 30 days in your lab.