db-ie Posted April 30, 2004 Share Posted April 30, 2004 my first unattended windows went straight thru by admin, well i then wanted to add a few things after finding out what else i was able to do, ( lots might i add) but i started with programs , first, then with some customization, i dont rememeber editing the winnt.sif that much at all (computer name/res/guirunonceex and some things to not install games autoupdate etc) that would change anything but now it asks to create a user, so i went to the home page got the info on how to add user thru cmdlines.txt well i do all that add my user, i noticed that "mrjojo" had a problem with the password and went thru with what was listed to help, to add user with no password n what not. well now once i install, im still asked to add a user, even tho i added one, now another is deleting the install files after the file's have been installed :ECHO.ECHO Deleting Temp Installation Files...RD /S /Q %systemdrive%\installcorrect? works for me, but what if i wanna delete the folder C:/drivers?i should prolly change install dir to Drivers dir correct? i have thisECHO.ECHO Deleting Driver Installation Files...RD /S /Q %systemdrive%\Driverswell after everything installs and everything runs through, im left with C:\Drivers still listed and undeleted. no idea whats up.. i cant think of anything or why its happening, if you need any info just ask. Link to comment Share on other sites More sharing options...
MasterControl Posted April 30, 2004 Share Posted April 30, 2004 Here's an example. Provided by the "Unattend Guide"» cleanup.cmd (used with RunOnceEx.cmd)cmdow @ /HIDshutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."net user aspnet /delete RD /S /Q "%AllUsersProfile%\Start Menu\Programs\PrintMe Internet Printing"RD /S /Q "%AllUsersProfile%\Start Menu\Programs\Java Web Start" DEL "%UserProfile%\Start Menu\Programs\Windows Media Player.lnk"DEL "%UserProfile%\Desktop\Flashget.lnk"DEL "%AllUsersProfile%\Start Menu\Programs\Windows Movie Maker.lnk"DEL "%AllUsersProfile%\Start Menu\Programs\Adobe Reader 6.0.lnk"DEL "%AllUsersProfile%\Desktop\Java Web Start.lnk"DEL "%AllUsersProfile%\Desktop\Adobe Reader 6.0.lnk"DEL "%AllUsersProfile%\Desktop\Alcohol 120%.lnk" RD /S /Q "%systemroot%\Cache\Adobe Reader 6\"RD /S /Q %systemdrive%\drivers\RD /S /Q %systemdrive%\apps\ EXIT Link to comment Share on other sites More sharing options...
RyanVM Posted April 30, 2004 Share Posted April 30, 2004 Are you sure it's getting that far and the batch file isn't quitting before it gets to that point? Try putting a series of pauses in there so you can verify its progress. I use this command and it's always worked fine, so I don't know why else yours wouldn't be working.rd /s/q %systemdrive%\Drivers Link to comment Share on other sites More sharing options...
db-ie Posted April 30, 2004 Author Share Posted April 30, 2004 Are you sure it's getting that far and the batch file isn't quitting before it gets to that point? Try putting a series of pauses in there so you can verify its progress. I use this command and it's always worked fine, so I don't know why else yours wouldn't be working.rd /s/q %systemdrive%\Driversi actually thought what your thinking, ill show my configs. winnt.sif;SetupMgrTag[Data] AutoPartition=0 MsDosInitiated="0" UnattendedInstall="Yes"[unattended] UnattendMode=FullUnattended OemSkipEula=Yes OemPreinstall=Yes TargetPath=\WINDOWS Repartition=No OemPnPDriversPath="Drivers\IDE;Drivers\RAID;Drivers\RAID\3ware6k;Drivers\RAID\3ware78k;Drivers\RAID\3112r;Drivers\RAID\3114r;Drivers\RAID\3124r;Drivers\RAID\hpt371;Drivers\RAID\sis180;Drivers\RAID\sis181;Drivers\SATA;Drivers\SATA\3112;Drivers\SATA\3114;Drivers\SATA\3124;"[GuiUnattended] AdminPassword=* EncryptedAdminPassword=NO OEMSkipRegional=1 TimeZone=020 OemSkipWelcome=1[userData] ProductKey=you really dont wanna know FullName=" " OrgName=" " ComputerName="SERVERNESS"[Display]BitsPerPel=32Xresolution=1024YResolution=768[RegionalSettings] LanguageGroup=1 Language=00000409[identification] JoinWorkgroup=WORKGROUP[Networking] InstallDefaultComponents=Yes[shell]CustomDefaultThemeFile="%Systemroot%\Resources\Themes\Watercolor Lite Blue.theme"[Components]msmsgs=offmsnexplr=off freecell=offhearts=offminesweeper=offpinball=offsolitaire=offspider=offzonegames=offAutoUpdate=off[GuiRunOnce]%systemdrive%\install\bootlogo.cmd%systemdrive%\install\load.cmdbootlogo.cmdbootcfg /RAW /A /Kernel=OEMKrnl.exe /ID 1bootcfg /Timeout 0load.cmdCLS@echo offECHO.ECHO Removing Wallpapers and Screensavers...DEL "%systemroot%\*.bmp"DEL "%systemroot%\Web\Wallpaper\*.jpg"DEL "%systemroot%\system32\dllcache\*.scr"DEL "%systemroot%\system32\*.scr"ECHO.ECHO Removing useless shortcuts...DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Update.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Set Program Access and Defaults.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Catalog.lnk"ECHO.ECHO Installing Symantec Antivirus Corporate 8.1ECHO Please wait...start /wait %systemdrive%\install\Applications\savcenrb.exeECHO.ECHO Installing PaintShopPro 7.02ECHO Please wait...start /wait %systemdrive%\install\Applications\jasc\psp7.msi /qnECHO.ECHO Registering Nero Burning ROM...REGEDIT /S %systemdrive%\install\Applications\Nero\register.regECHO.ECHO Installing Nero Burning ROM v6.0.0.3ECHO Please wait...start /wait %systemdrive%\install\Applications\Nero\Nero6303.exe /silent /norebootECHO.ECHO Installing WinRAR 3.3 PlusECHO Please wait...start /wait %systemdrive%\install\Applications\wrar330.exe /sECHO.ECHO Installing Q817787 for Windows Media Player 8ECHO Please wait...start /wait %systemdrive%\install\hotfixes\Q817787.EXE /Q:A /R:NECHO.ECHO Installing Q832483 Buffer overrun in an MDAC function could allow code executionECHO Please wait ...start /wait %systemdrive%\install\hotfixes\ENU_Q832483_MDAC_X86.EXE /C:"dahotfix.exe /q /n" /qECHO.ECHO. Importing Reg TweaksREGEDIT /S %systemdrive%\apps\regtweaks.reg ECHO.ECHO Deleting Driver Installation Files...RD /S /Q %systemdrive%\DriversECHO.ECHO Deleting Driver Installation Files making sure they're gone...RD /S /Q %systemdrive%\DriversECHO.ECHO Deleting Temp Installation Files...RD /S /Q %systemdrive%\installECHO.ECHO Restarting the PC in 5 seconds...shutdown.exe -r -f -t 05 -c "Windows XP will now restart in 5 seconds"EXIT(also i dont think its actually rebooting after this finishes it loads xp)cmdlines.txt[COMMANDS]"useraccounts.cmd"useraccounts.cmdnet user loacalhost /addnet localgroup Administrators localhost /addnet accounts /maxpwage:unlimitedREGEDIT /S autologon.regEXITautologon.regWindows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"DefaultUserName"="localhost""DefaultPassword"="""AutoAdminLogon"="1"hope this helps. Link to comment Share on other sites More sharing options...
RyanVM Posted April 30, 2004 Share Posted April 30, 2004 Hey, that OEMPnPDriversPath string looks familiar! And if it's not rebooting, I'd say it's VERY likely that it's never getting to the driver deletion part of the batch file either (BTW, why do you have it trying to delete that folder twice in a row?). I still think you're best off putting a pause before and after each step to see where it's dying.EDIT: Are you sure that that batch file is even executing at all? Link to comment Share on other sites More sharing options...
db-ie Posted April 30, 2004 Author Share Posted April 30, 2004 i put it twice... because.... well i hwas hoping it would delete it if it was still there.. hoping it wasnt. (i can manually delete it thats not the real problem. also as you asked before it isnt closing before it gets to it, because it delete's the install dir just not the drivers dir.. after the suposidly reboot xp loads up.ii was thinking about chaning the order to something like thisECHO.ECHO. Importing Reg TweaksREGEDIT /S %systemdrive%\apps\regtweaks.reg ECHO.ECHO Restarting the PC in 5 seconds...shutdown.exe -r -f -t 30 -c "Windows XP will now restart in 5 seconds" ECHO.ECHO Deleting Driver Installation Files...RD /S /Q %systemdrive%\Drivers ECHO.ECHO Deleting Temp Installation Files...RD /S /Q %systemdrive%\installEXITso shutdown hopefully executes then it will have the time to delete the drives Link to comment Share on other sites More sharing options...
MasterControl Posted April 30, 2004 Share Posted April 30, 2004 yea, try that order Link to comment Share on other sites More sharing options...
RyanVM Posted April 30, 2004 Share Posted April 30, 2004 That looks like a good thing to try. Link to comment Share on other sites More sharing options...
Alanoll Posted April 30, 2004 Share Posted April 30, 2004 ECHO.ECHO Restarting the PC in 5 seconds...shutdown.exe -r -f -t 30 -c "Windows XP will now restart in 5 seconds" ECHO.ECHO Deleting Driver Installation Files...RD /S /Q %systemdrive%\Drivers ECHO.ECHO Deleting Temp Installation Files...RD /S /Q %systemdrive%\installEXITI don't know if Drivers will get deleted, it should....but your Shutdown wasn't working before because you deleted teh batch file before it execute the restart......your new code should work....atleast with the Restart.... Link to comment Share on other sites More sharing options...
db-ie Posted April 30, 2004 Author Share Posted April 30, 2004 ECHO.ECHO Restarting the PC in 5 seconds...shutdown.exe -r -f -t 30 -c "Windows XP will now restart in 5 seconds"ECHO.ECHO Deleting Driver Installation Files...RD /S /Q %systemdrive%\DriversECHO.ECHO Deleting Temp Installation Files...RD /S /Q %systemdrive%\installEXITI don't know if Drivers will get deleted, it should....but your Shutdown wasn't working before because you deleted teh batch file before it execute the restart......your new code should work....atleast with the Restart....lol i just notice what your saying now, (yea im new to this but i am a fast learner ) since load.cmd is in the /install dir and its being deleted before the shutdown can complete.. oddly this didnt happen with my very first install. but it should help now. hopefully. now for the adduser/autologin. any help? Link to comment Share on other sites More sharing options...
db-ie Posted April 30, 2004 Author Share Posted April 30, 2004 can anyone help with the adduser/autologin ? Link to comment Share on other sites More sharing options...
Alanoll Posted April 30, 2004 Share Posted April 30, 2004 are your regfile and cmd file for the autologon in the same directory as your cmdlines.txt? Link to comment Share on other sites More sharing options...
db-ie Posted May 1, 2004 Author Share Posted May 1, 2004 yup. sure are. Link to comment Share on other sites More sharing options...
XtremeMaC Posted May 1, 2004 Share Posted May 1, 2004 delete the semi colon ( ; )here Drivers\SATA\3124;" <-- Link to comment Share on other sites More sharing options...
db-ie Posted May 1, 2004 Author Share Posted May 1, 2004 ok... still having an issue with users not being installed with cmdlines.txt 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