Title: Windows 2000 in the Enterprise
Published by TechTarget 
 May 21, 2004 >> Receive this e-mail as text   >> About this e-mail 
  FREE EMAIL SERVICES!
    Enter your e-mail and start receiving Administrator Tips.
    E-mail:     Not a member? We'll activate your
membership with your subscription.


SPONSORED BY: SearchWin2000.com White Papers
SearchWin2000.com White Papers Keep up-to-date on the latest in Windows with the SearchWin2000.com white papers. Read about featured topics such as active directory, security, systems management, .NET and Web services and much more!

Reducing user input during the Sysprep process
by Dan Thomson

I was thinking the other day of how to better automate our computer imaging process so that input from administrators could be further reduced. One area that usually requires input during the Sysprep process is the configuration of the computer name, TCP/IP settings and domain membership. I thought it would be great if I could store all this information in a network database that would be queried during the Sysprep process.

The Plan: Storing the configuration data

  • Create an Access database, which contains information listed in the field design shown below.
  • Populate the database with current configuration data for existing systems.
  • Add configuration data for new systems as they arrive.

The Access database contains the following fields listed in this chart. (To avoid possible duplicate entries, I set the SerialNumber field Indexed attribute to Yes [No Duplicates].)

Sysprep:

  • Prior to running Sysprep, the master system is configured to use DHCP.
  • The Sysprep.inf answer file will be configured to automatically generate a random name for the computer.
  • The script referenced in this article will be run at the end of the Sysprep process via the cmdlines.txt file or the GUIRunOnce entry in the Sysprep.inf file.
  • When the script runs, it will use the local systems serial number in a query on the database, which contains the configuration data.
  • Once the configuration data is retrieved, the script will rename the computer, set TCP/IP settings, join a domain and then initiate a system reboot.

Results:

  • When a system is re-imaged, no input is required from the technician during the Sysprep process.
  • The system will automatically configure itself using the configuration data retrieved from the database and initiate a reboot.

Notes:

  • Certain procedures in the VBS script code are Windows XP specific. For samples on how to accomplish similar tasks on Windows 2000, see Janis Keim's article, SysPrep Phase III -- Rename PC & join domains automatically.
  • The VBS script code, database template and a sample log file can be downloaded here --> 9385ConfigMe.zip.
  • I have tested this process using a Windows XP client and Windows Server 2003 on a small test network and feel pretty comfortable. However, I suggest fully evaluating the process prior to using it on production systems.
  • As detailed in a recent Scripting Guys Webcast, scripters can also use Excel and text files to store and retrieve data. For more information on using other file formats, visit the Microsoft TechNet Script Center or the Scripting Guys Webcasts Web site for sample code.
  • This code can be further expanded to include items such as local and network printer connections.
  • If there are any questions on the content of this article, please post to the Article Discussions forum or the VB Script forum. This will allow others to also benefit from the discussion.

BIO: Dan Thomson was first introduced to computers 15 years ago when he became a machinist in 1988. Dan graduated to a PC and gradually worked his way through learning various CAD and CAD/CAM programs. He eventually earned his MCSE 4.0 and A+ certifications and is currently studying for a Bachelors Degree in Computer Science.

MORE ON THIS TOPIC:
>>  Windows XP: Automating deployment using Sysprep -- by Dan Thomson

>>  Developing the perfect clone image -- by Sean Cottrell

>>  Auto-Run SysPrep -- by Rod Trent


RESOURCES DIRECT FROM: MyITForum.com

>>  SysPrep -- by Janis Keim
>>  SysPrep Phase II: Adding new hardware -- by Janis Keim
>>  SysPrep Phase III: Rename PC & join a domain automatically -- by Janis Keim
  A B O U T   T H I S   N E W S L E T T E R
TechTarget - The Most Targeted IT Media
Contact us:
TechTarget
MemberServices
117 Kendrick Street, Suite 800
Needham, MA 02494

This e-newsletter is published by TechTarget, the most targeted IT media and events company.
TechTarget offers magazines, Web sites, e-newsletters, Webcasts and conferences for enterprise IT professionals.
Copyright 2004 TechTarget. All rights reserved.

To unsubscribe from "Windows in the Enterprise - Best practices for deployment and management in business":

Go to unsubscribe: http://searchtechtarget.techtarget.com/unsubscribe?track=NL-36&ad=483220

Please note, unsubscribe requests may take up to 24 hours to process; you may receive additional mailings during that time. A confirmation e-mail will be sent when your request has been successfully processed.

Reply via email to