ashrafzia Posted August 30, 2006 Posted August 30, 2006 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 /addnet localgroup Administrators Ashraf Zia /addnet accounts /maxpwage:unlimitedREGEDIT /S autologon.regEXITand 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"
redxii Posted August 30, 2006 Posted August 30, 2006 (edited) net localgroup Administrators Ashraf Zia /addthe username should probably be in quotes, otherwise "Zia" would be interpreted as another switch or command:net localgroup Administrators "Ashraf Zia" /add Edited August 30, 2006 by redxii
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now