Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


February 24, 2006

Customizing an OSD Deployment

RSS
Subscribe to Windows IT Pro | See More Systems Administration Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!
Main Article    Deploy an OS by Using SMS

The Microsoft Systems Management Server 2003 (SMS 2003) Operating System Deployment Feature Pack (OSD) provides a number of program-specific phases, or points in the OS deployment process where you can configure actions that the OSD will perform. For every phase, except Install, you can also specify one or more custom actions, such as running a script. Web Table 1 lists the phases, whether they're related to a new OS installation or an OS upgrade, and the default actions you can configure. You configure these phases under the OS program properties' Advanced tab in the Microsoft Management Console (MMC) SMS Administrator snap-in.

The custom-actions capability makes OSD's phases especially powerful. For example, for one customer who wanted static IP addresses on the SMS client machines, I simply wrote a 40-line VBScript script, invoked during the State Restore phase, that used a Windows Management Instrumentation (WMI) call to read a computer's serial number, connected to a Microsoft SQL Server database, read that computer's IP address from the database, and configured the IP address on the machine via calls to the Netsh utility. Anything you can script can be implemented as part of an OSD deployment, making it a totally hands-off, flexible technology. One caveat: As I mentioned in the main article, the default Microsoft Windows Preinstallation Environment (WinPE) that comes with OSD is scaled down and doesn't have WMI support. To get the most out of the OSD, you'll need to replace its WinPE with your own WinPE 2004 environment, which has full WMI, Windows Script Host (WSH), and ADO support.

You can also use a script to automate the selection of the OS to be installed and specify this script when you create the installation CD. Here are a few examples of script logic that could perform this function:

  • Use WMI calls to ascertain a computer's make and model, number of processors, memory, and other information, then, based on this information, select the correct OS to install (e.g., if it's a server with more than four processors, select the Windows Server 2003 Enterprise Edition OS image).
  • Use a WMI call to ascertain a computer's serial number or MAC address, then connect to a SQL Server database to read the configuration that's been assigned for this machine.
  • As a modification to the previous examples: If the machine doesn't find the required machine-specific information, it writes an empty record, then sleeps for 30 minutes and checks again. I wrote a small Active Server Pages (ASP) page as an interface to the database, and when the administrator sees a new machine with new OS assigned, the admin simply selects from a drop-down menu the OS needed for that machine.

End of Article



Reader Comments
It was good

walkerad April 12, 2006 (Article Rating: )


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

WinInfo Short Takes: Week of November 23, 2009

An often irreverent look at some of the week's other news, including some post-PDC some soul searching, a Google Chrome OS announcement and a Microsoft response, Windows 7 off to a supposedly strong start, the Jonas Brothers and Xbox 360, and so much more ...

2009 Windows IT Pro Editors' Best and Community Choice Awards

Picking a favorite product from an impressive crowd of competitive offerings is never an easy task, and such was the case with our Editors' Best and Community Choice awards this year. ...


Related Events Deep Dive into Windows Server 2008 R2 presented by John Savill

Managing IT Across Multiple Locations

Cutting Costs with Client Management

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement