MSFN Forum: Creating another user having admin preveliges - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Creating another user having admin preveliges Rate Topic: -----

#1 User is offline   ashrafzia 

  • Newbie
  • Group: Members
  • Posts: 36
  • Joined: 26-August 06

Posted 30 August 2006 - 04:42 AM

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"



#2 User is offline   redxii 

  • Member
  • PipPip
  • Group: Members
  • Posts: 286
  • Joined: 18-August 05

Posted 30 August 2006 - 04:55 AM

net localgroup Administrators Ashraf Zia /add

the username should probably be in quotes, otherwise "Zia" would be interpreted as another switch or command:

net localgroup Administrators "Ashraf Zia" /add

This post has been edited by redxii: 30 August 2006 - 04:56 AM


#3 User is offline   ashrafzia 

  • Newbie
  • Group: Members
  • Posts: 36
  • Joined: 26-August 06

Posted 30 August 2006 - 11:59 AM

Thankx Buddy, it did work

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy