Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  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 log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
10 Reasons to Deploy Windows Vista

The decision to upgrade your XP systems to Vista is simple when you consider features such as easier backup, a great desktop search, and vastly improved security options. ...

10 Reasons Not to Deploy Windows Vista

The decision to upgrade to Vista has to make business sense, but many companies find the costs in training and application compatibility problems outweigh any benefits Vista brings. ...

WinInfo Short Takes: CES 2009 Special Edition

An often irreverent look at some of the week's other CES 2009 news, including covering the Vegas spectacle from the comfort of my own home, Windows 7 public beta, a weird Microsoft song application, Palm Pre, pending Microsoft mobile moves, and much more ...


Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Related Events Virtualization Forum: Optimizing Storage, Networks, Desktops, and Security

Cloud Computing Forum: Integrating Software, Server and Storage as a Service into Your Enterprise IT Delivery Model

Virtualization Forum: Optimizing Storage, Networks, Desktops, and Security

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 Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


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 Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2009 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing