
Then, on the PowerShell prompt, to list all users on the local PC, type the command below and press enter. You will receive a User Account Control requesting permission to allow PowerShell to open, click Yes. Then, on the right pane of the search results, below Windows PowerShell, click Run as Administrator. To use PowerShell to grant a user administrator access, use the steps below… PowerShell is Microsoft’s newest tool that helps Windows administrators automate Windows tasks. How to Get Administrator Privileges On Windows 10 with PowerShell If the command will return “The command completed successfully”, the user’s administrator privileges have been revoked. Net Localgroup Administrators NewLocalUser /Delete To remove the administrator privileges, type the command below and press enter. If the command returns “The command completed successfully”, you have successfully granted the user administrator privileges. Here is the modified command… Net Localgroup Administrators NewLocalUser /add In this example, I want to add the user, NewLocalUser to the local administrators’ group.
Replace UserName with the username for the user you want to add to the administrators’ group. Net Localgroup Administrators UserName /add
Finally, to grant administrator privileges on Windows 10 to the user, type the command below and press enter. Copy the username for the user you want to grant administrator privilege.
On Command Prompt, to list all users on the computer, type the command below and press enter. You will receive a User Account Control confirmation screen requesting you to allow the program to make changes to your computer, click Yes. Then, from the search results, right-click Command Prompt and select Run as administrator. Type command prompt or cmd in the search box. How to Get Administrator Privileges On Windows 10 with Command Promptįor Windows admins that prefer command prompt over GUI, this section is for you! The user will now be identified as an Administrator. You will be returned to the Family & other users screen. To save your changes, on the bottom right of the Change account type pop-up window, click OK. Finally, on the Change account type pop-up window, click the Account type drop-down and select Administrators. Then, from the displayed account options, click Change account type. In this example, I want to grant the user callled NewLocalUser administrator rights on the PC.