ahmedramzi Posted October 22, 2003 Share Posted October 22, 2003 does anyone know how to add another user and make it the default instead of the Administrator account in the unattended setup?also if this new account will be marked for AutoLogon, I'll be greatful. Link to comment Share on other sites More sharing options...
DaveXP Posted October 22, 2003 Share Posted October 22, 2003 ECHO Adding User Yourname...ECHO Please Wait...net user Yourname /addnet localgroup "administrators" Yourname /addECHO. Link to comment Share on other sites More sharing options...
Nastradamus Posted October 22, 2003 Share Posted October 22, 2003 In my script, I've got this:echo -=[Add Nas to administrator group]=-net user Nas /addnet localgroup "administrators" Nas /addnet localgroup "Users" Nas /deletenet user Nas /comment:"Administrator User Account"net user administrateur /active:noecho.echo.The command "net user administrateur /active:no" will disabled the administrator account (That's more secure )If you want to AutoLogon : >>> http://www.microsoft.com/technet/treeview/...dp_log_peyn.asp Link to comment Share on other sites More sharing options...
ahmedramzi Posted October 22, 2003 Author Share Posted October 22, 2003 net user administrateur /active:nonet user administrator /active:no[/which is the right one? Link to comment Share on other sites More sharing options...
ahmedramzi Posted October 22, 2003 Author Share Posted October 22, 2003 and should i remove these lines from my winnt.sif file? AutoLogon=Yes AutoLogonCount=1and shall i leave these lines as it is? AdminPassword="blablabla" EncryptedAdminPassword=NO Link to comment Share on other sites More sharing options...
XtaC Posted October 22, 2003 Share Posted October 22, 2003 administrator is the correct way. i'm assuming since Nastradamus is from france that he slipped and added the french ending on there by accident Link to comment Share on other sites More sharing options...
ahmedramzi Posted October 22, 2003 Author Share Posted October 22, 2003 yeah, i beleive so Link to comment Share on other sites More sharing options...
ahmedramzi Posted October 23, 2003 Author Share Posted October 23, 2003 should i remove these lines from my winnt.sif file?AutoLogon=YesAutoLogonCount=1and shall i leave these lines as it is?AdminPassword="blablabla"EncryptedAdminPassword=NO Link to comment Share on other sites More sharing options...
Geckotek Posted October 23, 2003 Share Posted October 23, 2003 Somewhere I picked up this:set _USER=whatevernet user %_USER% "" /add >nulnet localgroup administrators "%_USER%" /add>nul%SystemRoot%\system32\reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserName" /d "%_USER%" /f%SystemRoot%\system32\reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserPassword" /d "" /f%SystemRoot%\system32\reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /d "1" /f Link to comment Share on other sites More sharing options...
Nastradamus Posted October 23, 2003 Share Posted October 23, 2003 administrator is the correct way. i'm assuming since Nastradamus is from france that he slipped and added the french ending on there by accidentYou're rightSorry !!!!!It's administrator and not adminitrateur Link to comment Share on other sites More sharing options...
ahmedramzi Posted October 23, 2003 Author Share Posted October 23, 2003 Link to comment Share on other sites More sharing options...
ahmedramzi Posted October 23, 2003 Author Share Posted October 23, 2003 I have tried this syntax, but it didn't work!any suggestions? Link to comment Share on other sites More sharing options...
C0deBreaker Posted October 23, 2003 Share Posted October 23, 2003 Ok - I have NO vbs scripting expertise at all so I will leave this to the experts. Is it possible via batch file or vbs script to prompt me for the names of any users that need to be added to the machine and then run the command line syntaxes with the names that i input.Ultimately, I would like this to be accessible via Desktop shortcuts to the Administrator after the install. It would also be helpful to include another shortcut to a batch/vbs that would allow me to customize the name of the machine. Right now, all I have is "MyHomePC" on "MyHomeNetwork".I would like to have this one generic install (I already got the initial uninstall cd to work which is awesome!!!) Please give me some feedback and/or suggestions - I can write batch files but have been out of practice for quite awhile.Thanks to everyone for all of their help in advance.THIS SITE ROCKS!!!!! Link to comment Share on other sites More sharing options...
ahmedramzi Posted October 23, 2003 Author Share Posted October 23, 2003 Ok - I have NO vbs scripting expertise at all so I will leave this to the experts. Is it possible via batch file or vbs script to prompt me for the names of any users that need to be added to the machine and then run the command line syntaxes with the names that i input.Ultimately, I would like this to be accessible via Desktop shortcuts to the Administrator after the install. It would also be helpful to include another shortcut to a batch/vbs that would allow me to customize the name of the machine. Right now, all I have is "MyHomePC" on "MyHomeNetwork".I would like to have this one generic install (I already got the initial uninstall cd to work which is awesome!!!) Please give me some feedback and/or suggestions - I can write batch files but have been out of practice for quite awhile.Thanks to everyone for all of their help in advance.THIS SITE ROCKS!!!!! yes, that will be a very good idea, I think that you'll have a feedback pretty soon. I'll wait with you. Link to comment Share on other sites More sharing options...
squallgreg Posted October 23, 2003 Share Posted October 23, 2003 install.cmdset _USER=Squallnet user %_USER% "" /add >nulnet localgroup administrators "%_USER%" /add>nul%SystemRoot%\system32\reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserName" /d "%_USER%" /f%SystemRoot%\system32\reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserPassword" /d "" /f%SystemRoot%\system32\reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /d "1" /fcmdlines.txt[COMMANDS]".\installs.cmd"And everything under $OEM$.NB: someone of the forum did this for me, I'm sure you guys can find the thread Link to comment Share on other sites More sharing options...
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