Jump to content

Help creating a user.


Recommended Posts

Windows isn't creating a user unattended. Here are my files. (*s used to hide sensitive data)

\I386\Winnt.sif

;SetupMgrTag
[Data]
   AutoPartition=0
   MsDosInitiated="0"
   UnattendedInstall="Yes"

[Unattended]
   UnattendMode=FullUnattended
   OemSkipEula=Yes
   OemPreinstall=Yes
   TargetPath=\WINDOWS
   OemPreinstall=Yes
   UnattendSwitch="Yes"

[GuiUnattended]
   AdminPassword=*
   EncryptedAdminPassword=NO
   OEMSkipRegional=1
   TimeZone=4
   OemSkipWelcome=1

[UserData]
   ProductKey=*****-*****-*****-*****-*****
   FullName="***** ******"
   OrgName=""
   ComputerName=Compaq

[Display]
   BitsPerPel=32
   Xresolution=1024
   YResolution=768

[TapiLocation]
   CountryCode=1
   Dialing=Tone
   AreaCode=818

[RegionalSettings]
   LanguageGroup=2,1

[Identification]
   JoinWorkgroup=Home

[Networking]
   InstallDefaultComponents=Yes

[Components]
   msmsgs=off
   msnexplr=off
   freecell=off
   hearts=off
   minesweeper=off
   pinball=off
   solitaire=off
   spider=off
   zonegames=off
   AccessOpt=off
   fp_extensions=off
   media_clips=off
   rec=off

[GuiRunOnce]
  %systemdrive%\install\batch.bat

[Shell]
  DefaultStartPanelOff=yes

\$OEM$\cmdlines.txt

.\user.cmd

\$OEM$\user.cmd

CLS
@ECHO OFF
ECHO Adding Default User...
net user ***** ****** /add
net localgroup "administrators" User /add
ECHO.
ECHO Applying Root Registry Tweaks...
REGEDIT /S %systemdrive%\install\Reg_Root_Tweaks.reg
ECHO.
EXIT

\$OEM$\$1\install\Reg_Root_Tweaks.reg

Windows Registry Editor Version 5.00 

;This will allow you to autologin.
;Replace InsertName value with the Username you want to autologin with.
;Replace InsertPassword value with the password corresponding to the Username specified.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="***** ******"
"DefaultPassword"=""
"AutoAdminLogon"="1"

Link to comment
Share on other sites


The syntax to add the user is correct, asuming that the first set of "sensitive data" is the user name, and the second set is the password. If you have a blank in the user name that would be a problem. Use quotes.

Unless you created a user name "User", the command to add the user to the Administrators group cannot work. Should be:

NET LOCALGROUP Administrators ***** /ADD

(or possibly)

NET LOCALGROUP Administrators "***** ******" /ADD

The group (Administrators in this case) does not need quotes if it has no blank in it.

Debug it yourself! This is just a batch commad, and as such can be run from a command prompt window. If there is an error, it will indicate it to you.

Link to comment
Share on other sites

Hello everybody

[this is my first post here :) ]

In my former Windows XP Super CD, i used to write this :

NET USER User Password /ADD

NET LOCALGROUP group User /ADD

where User is the user name, between "" if it is composed of 2 words or more,

Password ... follows the same rule

and Group is the user group, such as "administrators"...

PS : Excuse-me for my poor english, but it is not my mother tongue so... i've to work on it

Link to comment
Share on other sites

I see... The reason that I'm asking is because last night, when I do my first test on my unattended file, I notice in the user profile folder, there is two user accounts called Sky and Sky.Sky profile is created.

In my unattended file, I specified UnattendSwitch="Yes" instead of UnattendSwitch="No". Also, I'm not using the cmd.txt that you guys suggested yet on my first test. The only reason that I could come up with is that the user account was created automatically the UserData section and then tring to create the same Sky in Welcome Screen that I inputted and didn't prompt me any error but instead created Sky.Sky.

More testings to come...

-Kenneth

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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