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.”
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:
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.”
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:
That’s it!
No comments:
Post a Comment