To create or add a local user to the Administrator group in Windows, follow these steps:
Open Command Prompt as Administrator:
Press Win + R, type cmd, and press Ctrl + Shift + Enter to open as admin.
Create a new user (if not already created):
net user <username> <password> /add
Replace <username> with the desired username and <password> with the chosen password.
Add the user to the Administrator group:
net localgroup Administrators <username> /add
This grants the user admin privileges.
Open Computer Management:
Press Win + R, type compmgmt.msc, and press Enter.
Navigate to Users and Groups:
Go to Local Users and Groups > Users.
Create a new user (if needed):
Right-click Users > New User > Enter details and click Create.
Add User to Administrator Group:
Open Groups > Double-click Administrators > Click Add.
Enter the username > Click OK.
Open PowerShell as Administrator:
Press Win + X, select PowerShell (Admin).
Create a new user:
New-LocalUser -Name "<username>" -Password (ConvertTo-SecureString "<password>" -AsPlainText -Force) -FullName "Your Name" -Description "Admin User"
Add User to Administrator Group:
Add-LocalGroupMember -Group "Administrators" -Member "<username>"
After completing these steps, the user will have administrator privileges. Let me know if you need further help! 🚀