Add azuread user as local admin

When setting up a local machine using cloudaccount like azure and the machine gets a new user they are not often made local administrators of the machine.

To fix this the following needs to be done.

#1 Gain local admin rights (somehow…)
#2 Determin the account name with the command ”whoami”
#3 with localadmin right from console run the following command

English:
Net localgroup Administrators /add ”AzureAD\<users office 365 email address>”
Swedish:
Net localgroup Administratörer /add ”AzureAD\<users office 365 email address>”



Lämna ett svar