Home > Windows Server Tips > Windows Server Monitoring and Management > Install Windows Server 2003 silently
Windows Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

Install Windows Server 2003 silently


Jeff Gilbert, Contributor
Rating: -4.44- (out of 5)

Part 1 of a 3-part series.
Part 2: Files hold key for 'silent' Windows Server install
Part 3: Create a bootable Windows Server 2003 CD

Please let us know how useful you find this tip by rating it below. Do you have a useful Windows tip, timesaver or workaround to share? Submit it to our tip contest and you could win a prize!


One of your daily time-wasters may be loading a server from a CD and then going through a day's worth of customizations and software installations afterward. If you want to avoid all that -- and have the added benefit of gaining a baseline for what software and settings exist on your servers -- then I have a solution for you. The method below creates CDs that automatically load sys...


RELATED CONTENT
Windows Server Monitoring and Management
Mercury/32: An alternative mail server for Windows
Creating an energy-efficient server environment
How Windows servers get hacked
How Windows Server 2008 R2 stands up to security checks
BitLocker in R2 provides data protection for semi-protected servers
Perfmon made easy with PAL utility
Converting Citrix XenServer source machines to Hyper-V format
Balancing Windows security with reasonable password policies
Windows AppLocker in R2: Turning conventional security wisdom on its head
Top 10 things you don't know about Windows Server 2008 R2

Windows Systems and Network Administration
Security best practices for Microsoft Hyper-V installations
VPN Reconnect: Powerful networking for when the network isn't powerful
The real deal with internal security threats
What makes Windows PowerShell unique?
How to use Group Policy to centralize system configurations
Troubleshooting Windows application crashes or hangs
Converting VMware ESX machines to Hyper-V format
Using DFSR for SYSVOL replication in Windows Server 2008
Top 25 Windows PowerShell commands for administrators
Key DFS improvements in Windows Server 2008 R2

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


tems before putting them on the network. The setup time for one of these CDs is usually about an hour. When you finish, you'll have a system complete with necessary updates, managed antivirus program and ready for the production network.

I'll begin by describing how to create your installation source file structure. Remember to keep the total file size small enough to fit on a CD. When you create a Windows Server 2003 CD following the example here, setup will automatically go to work when you press a key to boot from the CD. Here are the main installation actions:

During Setup:
The server will read the data stored in the winnt.sif file for unattended installation options. The first partition of the first hard drive WILL BE FORMATTED with NTFS.

At 12 minutes before Windows setup completes, the following will occur:
Registry edits are imported -- desktop wallpaper, logon screensaver, quick-launch toolbar and Internet Explorer homepage settings are modified. Additional software such as the Windows 2003 Server resource kit and antivirus program is installed. System updates are installed -- updated to the time of CD creation. The i386 folder from the CD is copied to C:\Windows\i386 -- the registry is edited to point to this folder from now on instead of looking for the CD. Certain files are then deleted so the i386 folder cannot be copied and used to load unauthorized systems (winnt.exe, winnt.sif, etc.). The system properties OEM information will be changed to reflect your organization.

When the server starts the first time, it will auto logon and the following will occur:

The setadmpw.bat file will run. This allows you to reset the local administrator password from the default Password00 set by the winnt.sif file. The antivirus file will be updated to the latest definition file as of the time the CD was created. Temporary files used during installation are deleted.

Below is a quick overview of the basic folder structure. After that, I've broken it down for you folder by folder, and in some cases, file by file.

Folder Structure Breakdown and Explanation:
(Unless otherwise noted, all files are default Server 2003 installation files.)

D:.
Files in the CD Root
The autorun.inf file tells setup what to do when the CD is loaded while Windows is running. The default autorun.inf will cause setup.exe to run and display the Server 2003 installation options. I've added the label and shell commands to the default autorun.inf file. The label command will cause the CD drive label to be Windows Server 2003 when viewed from Windows explorer. The shell commands give you a context menu option (right click) to view Windows Server 2003 documentation. Create a PowerPoint slide show and save it as a presentation (.pps), and save it in the . \support\setup\instructions folder. When you right click on the CD, you will have the option to view your presentation (the presentation opens with PowerPoint viewer).

D:.
+---$OEM$

Files/Folders in the $OEM$ Folder

The $OEM$ folder contains all the extra files that you want to install or run other than the default Server 2003 installation files. The $$ and $1 folders correspond to the %systemroot% and C:, respectively. If you want anything extra placed in either of those two folders, just add it to the $$ and $1 folders. If you would like to add additional drivers to this installation, you could create a drivers folder in the $1 folder and add them there. You will need to add additional lines to the winnt.sif file for that to work.

This ss (screensaver) folder will be placed in the C: \Windows\System32 folder. Later in the process, I use the Windows slideshow screensaver to create a logon screensaver displaying the pictures in this folder.
¦ ¦ ¦ oeminfo.ini oemlogo.bmp

The oeminfo.ini file is the text displayed for support information when you right click on the My Computer icon on the desktop and select properties from the context menu. The oemlogo.bmp file is the picture displayed on that same tab.

These files are placed in the Temp folder C:\Windows\ and are needed to run after the system boots to Windows for the first time, and then will be deleted.

This file is the desktop wallpaper to be displayed as the desktop when the system boots (800 x 600 pixels seems to work pretty well).

The C:\update folder is the real workhorse for customizing Windows setup. At 12 minutes from setup completing the Windows portion of setup, the cmdlines.txt file is called. This file causes the update.bat file to go into action accessing and running the files in the update folder. Place anything in here that you want to run during Windows setup. I generally put things like the resource kit tools, antivirus installation files and updates here. On my regular Server 2003 CD, there are 13 Server 2003 updates that are installed from here. This way, when the server loads Windows the first time, it already has the extra tools I want, including managed antivirus, and it is up to date on required system patches.

The winnt.sif file is the unattended answer file that setup uses to answer all the questions you are normally asked during setup. The winnt.sif file can also be created by using setupmgr.exe located in the folder .\SUPPORT\TOOLS\ on the CD -- you must go into the DEPLOY.CAB folder and extract it. You can put the winnt.sif file on a floppy disk instead of embedding it in the I386 folder. I put it in the I386 folder so I don't need any floppies or to remember to take it out before the server restarts!

The .\SUPPORT\SETUP\Instructions folder is where the documentation you created with PowerPoint and the PowerPoint viewer files are stored. You will need to install the PowerPoint viewer and then copy the files from the .\Program Files\Microsoft Office\PowerPoint Viewer folder here. These files launch PowerPoint viewer to display the documentation -- or instructions for loading the server -- from the context menu at the root of the CD drive in Windows Explorer. I use this presentation to let people know that this CD will format their hard drives, for example.

Part 2: File Details: what they look like, how they work

[IMAGE]
[IMAGE]The top 10 tips of 2005
[IMAGE]
[IMAGE]  Introduction
[IMAGE]  Tip #1: How to change the Windows XP Product Activation Key Code
[IMAGE]  Tip #2: Create a bootable USB flash drive -- in a flash!
[IMAGE]  Tip #3: Create a bootable Windows Server 2003 CD
[IMAGE]  Tip #4: 8 common causes for 'delayed write failed' errors
[IMAGE]  Tip #5: Ultimate boot CD packs in recovery, repair utilities
[IMAGE]  Tip #6: Install Windows Server 2003 silently
[IMAGE]  Tip #7: Uninstall 'stubborn' programs
[IMAGE]  Tip #8: What to do when your hard drive fails
[IMAGE]  Tip #9: Windows XP and Windows Server 2003 volume shadow copy service
[IMAGE]  Tip #10: 'Unlocker' reveals processes that lock files


Jeff Gilbert is a Systems Management Server and software administrator with the Army at Fort Benning, Ga. He holds the Windows 2000 MCSE, MSCA and Network+ certifications. He can be reached at jeff.gilbert@us.army.mil.

Rate this Tip
To rate tips, you must be a member of SearchWindowsServer.com.
Register now to start rating these tips. Log in if you are already a member.




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Server Room Design - Planning, Cooling, Maintenance
HomeTopicsBlogsITKnowledge ExchangeTipsNewsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2004 - 2010, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts