Jump to content

Changing ordinary user (limited account) to Administrator


Recommended Posts

Posted

I have created two users in my unattended setup the Administrator and Ashraf using the NET USER method. Works fine but the 2nd user (Ashraf) is an ordinary user and has a limited account. I want it to be administrator too. How to fix this ?

This is my useraccounts.cmd file:

net user "Ashraf Zia" 123456 /add
net localgroup Administrators Ashraf Zia /add
net accounts /maxpwage:unlimited
REGEDIT /S autologon.reg
EXIT

and autologon.reg file:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="Ashraf Zia"
"DefaultPassword"="123456"
"AutoAdminLogon"="1"


Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...