Change a User Account to Administrator Using the Command Prompt (Windows 10 and 11) - WindowsTips.net - Windows Tips and Tricks with Geek

Friday, November 19, 2021

Change a User Account to Administrator Using the Command Prompt (Windows 10 and 11)

 

Change a User Account to Administrator Using the Command Prompt

You can use the command prompt to run a simple command to change a Standard User account to Administrator.

To open the command prompt, click the Start button, type “cmd” in the Windows Search, and select “Run as Administrator.”

click Start, type "cmd" in the Windows Search, and select "Run as administrator."

In the Command Prompt, type the following command, and then press Enter:

net localgroup administrators "UserAccountName" /add

Replace the text in quotes with the account username on your computer. When you run this command, it looks like this:

Type Command in Command Prompt to change User account to Administrator on Windows.

Change a User Account to Administrator Using the PowerShell

After clicking the Start button, type “windows powershell” into the Windows Search, and select “Run as Administrator.”

After clicking Start, type " windows powershell" in the Windows Search, and select "Run as administrator."

Choose “Yes” when the User Account Control prompt shows up. Then, type the following command into Windows PowerShell, and then hit Enter:

Add-LocalGroupMember -Group "Administrators" -Member "username"

This is how it will look:

Run Command in Windows PowerShell to Change User to Administrator.

That’s it! 

No comments:

Post a Comment