I use a Windows XP Unattended Installation instead of a Desktop imaging application, and I wanted to share my setup. ( all software licensing is your responsibility )
I will go over the basics, and expect that I will get a few questions, which is fine. What I wont do is explain what setting does what, as this is a how to, I can expand on things, just ask, and I am sure people will find typo’s.
First we have some work to do to get things in order, this setup requires that you know what model of computer’s your using, and that you have domain access to add devices to Network. You will also need full access to a network share, and a Windows XP disk of your choice.
Additionally, you will need a Windows 98 boot disk, and network boot disk. Plus, you will need to download the chipset, audio, video, and Lan drivers for the computer your building, and you’ll need 7zip to extract the drivers from each installer.
Once you have downloaded each driver put them each in a separate folder, under the computer model, and right click each and use 7zip to extract them.
Make sure you download wireless and or TMP drivers as well. Once you have the drivers in something like 755, and under that a folder for chipset, audio, video, lan, and have extracted each, C:driver755audio , C:driver755video ( tested with HP/ Dell / IBM / computers, this should give you lots of files and a few folders in each sub folder, and not just one installer, ) we can come back to the files later.
In my Example, I am going to use Windows XP Pro OEM, and a Dell Optiplex 755 USFF that has a XP Pro OEM Key.
1. On your network share, create a unattended folder, and share it as unatt$
2. Inside of the unattended folder, crease a folder for each version of Windows XP you want to create, in my case, I am only using one ( for this example ) so I will call it OEM.
3 .Insert your Windows XP CD, and copy the I386 directory, ( make sure you have the folder options setup to see hidden files ) , paste the directory into your folder in unattended. My case I am using drive X:unattendedoemI386 , so now you should have a copy of your windows CD’s I386 directory for your unattended.
4. Browse back to X:unattendedoem and make a $OEM$ folder, this will hold your files for the unattended install ( drivers and such )
5. google SMARTDRV.EXE, and download it to X:unattended, and copy it X:unattendedoem also.
6. Browse to X:unattended , and make a file called oem.bat, and put in the following. ( this will be ran from dos )
“
SMARTDRV.EXE
net use /Y X: /delete
net use X: \servershareunatt$
cd unatten~1
cd oem
Call X:oemXPDRIVER.BAT
”
7. Browse back to X:unattendedoem and make a file called XPDRIVER.BAT and put in the following
“
set AnswerFile=XPDRIVER.sif
set SetupFiles=i386
“
8. make a file called XPDRIVER.SIF, and put in the following, enter in your name and company name as needed. ( FullName=”putinnamehere” OrgName=”putincompanyhere” ) but leave everything else. ( I am removing games, and components, and turning off windows firewall here, see below. )
“
;SetupMgrTag
[fusion_builder_container hundred_percent=”yes” overflow=”visible”][fusion_builder_row][fusion_builder_column type=”1_1″ background_position=”left top” background_color=”” border_size=”” border_color=”” border_style=”solid” spacing=”yes” background_image=”” background_repeat=”no-repeat” padding=”” margin_top=”0px” margin_bottom=”0px” class=”” id=”” animation_type=”” animation_speed=”0.3″ animation_direction=”left” hide_on_mobile=”no” center_content=”no” min_height=”none”][Data]
AutoPartition=1
MsDosInitiated=”1″
UnattendedInstall=”Yes”
AutomaticUpdates=no
[Unattended]
UnattendMode=FullUnattended
OemPreinstall=Yes
ConfirmHardware=No
TargetPath=WINDOWS
FileSystem=ConvertNTFS
Repartition=Yes
OemSkipEula=Yes
UnattendSwitch=”yes”
WaitForReboot=”No”
OemFilesPath=”X:OEM$OEM$”
OemPnPDriversPath=”Drivers 00;Drivers 01;Drivers 02″
DriverSigningPolicy=Ignore
Hibernation=No
KeyboardLayout=”US”
[GuiUnattended]
OEMSkipRegional=1
TimeZone=20
OemSkipWelcome=1
ProductID=””
FullName=”putinnamehere”
OrgName=”putincompanyhere”
ComputerName=””
[Display]
Xresolution=1024
YResolution=768
AutoConfirm=1
deskpaper=Off
indexsrv_system=Off
games=Off
msnexplr=Off
OEAccess=Off
zonegames=Off
msmsgs=Off
freecell=Off
hearts=Off
minesweeper=Off
pinball=Off
solitaire=Off
spider=Off
SNMP = 1
WBEMSNMP = 1
[Networking]
InstallDefaultComponents=Yes
DefaultStartPanelOff = Yes
DefaultThemesOff = Yes
“%systemdrive%installicon.cmd”
“%systemdrive%installclean2.cmd”
“%systemdrive%installclean.cmd”
Profiles = WindowsFirewall.TurnOffFirewall
Mode = 0
“
9. Browse to X:unattendedOEM$OEM$ , and create a file called cmdlines.txt, and put in the following.
“
“unpack.cmd”
“DRIVERS.cmd”
“IP.cmd”
“Domain.cmd”
“
10. Create a file called domain.cmd and put in the following, add in the domain , and user, if you wanted you can do * for user, but then you’d have to type it every time, the reason I have type 1 and 2, is in case you mistype.
“
echo ** **
echo ** You Must First Add Then Join The Domain **
echo ** ———————————– **
echo *********************************************************
echo ** Make You Selection **
echo *********************************************************
echo ** 2) join domain **
echo ** 3) end **
echo ** **
echo *********************************************************
echo . .
SET /P Choice=Select your choice # and press Enter:
:: starting at 0 (the beginning) and 1 character long
IF NOT ‘%Choice%’==” SET Choice=%Choice:~0,1%
IF /I ‘%Choice%’==’3’ GOTO end
ECHO “%Choice%” is not valid. Please try again.
ECHO
:join
echo ——————————————–
echo Now now joining computer to domain
echo ——————————————–
C:
“
11. Create a file called drivers.cmd and put in the following ( here I have a desktop and laptop configuration, but for this example I will only walk us through the desktop setup, you would just copy the desktop configuration and rename it ldrivers.cmd if you needed both)
“
@ECHO off
echo ** **
echo ** You Must First Select Desktop Or Laptop **
echo ** ———————————– **
echo *********************************************************
echo ** Make You Selection **
echo *********************************************************
echo ** 1) Desktop **
echo ** 2) Laptop/Tablet **
echo ** **
echo *********************************************************
echo . .
SET /P Choice=Select your choice # and press Enter:
:: starting at 0 (the beginning) and 1 character long
IF NOT ‘%Choice%’==” SET Choice=%Choice:~0,1%
IF /I ‘%Choice%’==’2’ GOTO laptop
ECHO “%Choice%” is not valid. Please try again.
ECHO
:desktop
“C:installddrivers.cmd”
:laptop
“
12. Create a file called ip.cmd, and put in the following.
“
:NW_CHOOSE
ECHO.
ECHO 1. STATIC
ECHO 2. DHCP
ECHO 3. Cancel
SET /P NW_CONF=[Do you want to use DHCP or specify a static IP? (Select 1 or 2)]
IF /I “%NW_CONF%” == “1” GOTO NW_INPUT
IF /I “%NW_CONF%” == “2” GOTO NW_SET_DHCP
IF /I “%NW_CONF%” == “3” GOTO END
SET /P STATIC_IP=[IP:]
SET /P SUBNET=[Subnet Mask:]
SET /P GATEWAY=[Default Gateway:]
SET /P DNS=[DNS Server:]
ECHO.
ECHO You specified:
ECHO IP Address: %STATIC_IP%
ECHO Subnet Mask: %SUBNET%
ECHO Default Gateway: %GATEWAY%
ECHO DNS Server: %DNS%
:NW_CONFIRM
ECHO.
SET /P NW_CONF=[Is this correct? Y/N:]
IF /I “%NW_CONF%” == “Y” GOTO NW_SET_STATIC
IF /I “%NW_CONF%” == “N” GOTO NW_INPUT
GOTO NW_CONFIRM
netsh int ip add address “Local Area Connection” %STATIC_IP% %SUBNET%
netsh int ip add address “Local Area Connection” gateway=%GATEWAY% gwmetric=1
netsh int ip add dns “Local Area Connection” %DNS%
GOTO END
netsh int ip set add “Local Area Connection” dhcp
GOTO END
”
13. Create a file called unpack.cmd and put in the following.
“
REM Starting unpack
“
14. In X:unattendedOEM$OEM$ create the following folders.
15. $1 , $$ , and C , go into $1, and create a folder called Drivers, and in Drivers, create a folder 000, 001, and 002.
16. Next browse to where you extracted your chipset drivers to, and copy all of the files ( should be lots of INF and Cat files, from the All Folder) into 000 and 001.
17. Next browse to the folder where you extracted the lan drivers, and find the sub folder where the .ini and .cat files are, and copy everything in that folder to the 002 folder. ( in my case it was something like lanPRO100Win32
18. Once you have copied the chipset, and lan drivers to the folders, remove there sub folder’s, so you will only have something like audio, video, tpm, wireless, etc, all under C:driver755audio , C:driver755video. browse to C:driver755 ( or the place where you have the video / audio , and etc sub folders, and Highlight the folders, then right click, send to compressed zip folder, name it drivers.zip, we will copy this later.
19. In X:unattendedOEM$OEM$$$ create a INF folder, and copy the contents of X:unattendedOEM$OEM$Drivers 00 to it.
20. In X:unattendedOEM$OEM$c create a folder called INSTALL, then browse to X:unattendedOEM$OEM$cinstall
21. Download http://www.info-zip.org/UnZip.html and extract the .exe to the folder.
22. Create a file called Clean.cmd and put in the following contents.
“
@echo on
REM cleaning install files
cd C:
“
23. Create a file called clean2.cmd and put in the following contents.
“
REM cleaning driver files
cd C:
“
24. Create a file called ddrivers.cmd and put in the following contents( here you can make a new entry for more drivers.)
“
echo ** Custom DESKTOP Video Drivers Insatllation **
echo ** ———————————– **
echo ** Informaton Systems Standard Drivers for **
echo ** Standard Models that are purchased Please **
echo ** Select The Model That You Are Setting Up. **
echo ** **
echo *********************************************************
echo ** Make Your Selection **
echo *************** Based on Motherboard ********************
echo ** **
echo ** 1) Install Dell 755 Drivers **
echo ** 9) end **
echo *********************************************************
echo . .
SET /P Choice=Select your install # and press Enter:
:: starting at 0 (the beginning) and 1 character long
IF NOT ‘%Choice%’==” SET Choice=%Choice:~0,1%
IF /I ‘%Choice%’==’1’ GOTO 755
ECHO “%Choice%” is not valid. Please try again.
ECHO
:755
echo ——————————————–
echo Now Install Dell Drivers
echo ——————————————–
“C:install755videosetup.exe”
“C:install755audiosetup.exe”
GOTO return
“
25. Create a file called icon.cmd and put in the following contents, ( this deletes the following shortcuts )
“
del “C:Documents and SettingsAll UsersStart MenuWindows Catalog.lnk”
del “C:Documents and SettingsAll UsersStart MenuWindows Update.lnk”
del “C:Documents and SettingsAll UsersStart MenuMicrosoft Update.lnk”
“
26. Create a file called logon.reg, and put in the following, put in your domain name where it says putinyourdomainhere.
“
REGEDIT4
[HKEY_LOCAL_MACHINESoftwareMicrosoftWindows NTCurrentVersionWinLogon]
“DontDisplayLastUserName”=”0” ;If enabled Automatic Logon will not function correctly
“IgnoreShiftOverride”=”1” ;Disable the Automatic Logon Shift Override Feature
“DefaultDomainName”=”putinyourdomainhere” ;Sets default domain
“AltDefaultDomainName”=”putinyourdomainhere” ;Sets alt default domain
“forceguest”=dword:00000000
“
27. Create a file called install.cmd and put in the following contents.
“
28. Download netdom.exe , ( get from the admin tool kit ) and copy it to the folder.
29. Copy the .zip file with the rest of the drivers you created into the X:unattendedOEM$OEM$CINSTALL folder.
Congrats! , you are done with setup.
Now, here we go for install procedure.
- boot from the windows 98 boot disk, fdisk , delete the partition, and create a primary dos partition, and reboot back to the boot the same 98 boot disk.
- do a format C: /s ( at this point you could make a disk image of a blank drive to save two reboots )
- boot from a network boot disk, and map X: to \servershareunatt$ being your unattended share.
- run “oem.bat” and it should take off ( multiple reboots, and it will prompt for the pc name, password, and windows key. ( use the windows OEM key, or the key needed by the disk you copied your I386 from )
- next, it will ask for drivers, and follow the screen directions
- next, it asks for static ip or dhcp
- next, it asks to join domain.
- your done, windows is installed, at first login the clean and clean2 bat files should delete temp files.
What’s left for next time?
Installing applications before windows boots.
Setting up default user
EDIT: made some readability changes, and fixed a typo.[/fusion_builder_column][/fusion_builder_row][/fusion_builder_container]