Home > Enterprise Desktop Tips > Windows desktop management tips > Converting Windows 7 deployment images to virtual hard drive files
Enterprise Desktop Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

WINDOWS DESKTOP MANAGEMENT TIPS

Converting Windows 7 deployment images to virtual hard drive files


Brien M. Posey, Contributor
10.13.2009
Rating: --- (out of 5)


Enterprise IT tips and expert advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


Administrators frequently have to deploy Windows to new machines and reinstall it on to computers that are having problems. Since manual deployments can be time consuming, many organizations rely on Windows Deployment Services. With this technology, a Windows Image (.WIM) file and an optional unattended answer file are created and then custom images are deployed to workstations from across the network.

Windows Deployment Services still exists in Windows Server 2008 R2 has and features added image-deployment capabilities. The most notable of these new capabilities involves using virtual hard drive (VHD) files in place of .WIM files.

Windows 7 and Windows Server 2008 R2 offer the new feature native boot. As strange as it may sound, native boot allows a physical computer to boot from a virtual hard drive file without the aid of a parent operating system or a hypervisor. With native boot, Windows is not subject to the limitations that normally exist for virtual machines. In fact, Windows will have full access to all of the computer's physical disks and to other hardware.

Creating a virtual hard drive file

The easiest way to build a virtual hard drive file is to use Microsoft's Windows Image to Virtual Hard Disk Converter utility, which is better known as WIM2VHD. This utility can be downloaded from Microsoft's website. At the time this article was written, the WIM2VHD utility was still in the Release Candidate phase of testing, but the final release is expected soon.

The WIM2VHD utility is designed to create a sysprepped virtual hard drive from a Windows 7 or Windows Server 2008 R2 deployment image file. The utility itself is a .WSF file rather than a standard executable, so when running it, the CSCRIPT command needs to be used.

The command's full syntax is as follows:
Usage: WIM2VHD.WSF /wim:


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
Microsoft Windows 7 operating system
Remote troubleshooting made easier with Windows 7's Problem Step Recorder
Windows 7 launches, offers salvation from Vista
Using Windows 7 to configure workstations for optimal power management
MDOP for Windows 7 available now
An intro to Windows 7's Deployment Image Servicing and Management tool
Guide to converting from Windows XP to Windows 7
Manage the desktop image lifecycle to limit work, ensure security
Microsoft Desktop Optimization Pack 2009 R2 adds Windows 7 support
Has Microsoft corrected Vista annoyances in Windows 7?
Protect your computer from direct attacks in Windows 7

Windows desktop management tips
Remote troubleshooting made easier with Windows 7's Problem Step Recorder
Using Windows 7 to configure workstations for optimal power management
An intro to Windows 7's Deployment Image Servicing and Management tool
Admins can wear many hats using Netcat
Manage the desktop image lifecycle to limit work, ensure security
Choosing the best way to install images
Should you switch to the Office 2007 file format?
Are you ready to migrate to Windows 7?
Microsoft Office 2010: At a glance
Your questions answered: The Windows 7 upgrade quandary

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


ath> /sku: [/vhd:] [/size:] [/disktype:] [/unattend:] [/qfe:] [/ref:] [/copylocal:][/passthru:] [/signdisk:] [/mergefolder:]

The WIM2VHD utility is a command-line tool, and there are quite a few switches that could be used with it. This utility is easier to use than it first appears because only two of the parameters are actually required -- everything else is optional.

The first required parameter is the /WIM switch. This parameter must be used to specify the path to the .WIM file from which you want to create the virtual hard drive.

The second required parameter is the /SKU switch. The SKU tells the WIM2VHD utility which edition of Windows to deploy. For example, ServerStandard and ServerDatacenterCore are both valid SKUs.

Now suppose you wanted to create a virtual hard drive file based on an image named INSTALL.WIM, and you wanted the virtual hard drive to run Windows 7 Ultimate.

The virtual hard drive file could by created with the following command:
Cscript wim2vhd.wsf /wim:C:\temp\install.wim /sku:ultimate

This is a simplified example. In the real world, you would probably want to specify the name of the .VHD file that you are creating. You can do so by appending the /VHD switch. Here is an example:
Cscript wim2vhd.wsf /wim:C:\temp\install.wim /sku:ultimate /VHD:c:\temp\install.vhd

Another common parameter is the /Unattended switch. This switch allows you to automate the installation process by providing Windows with an answer file it can use during setup.

If you wanted to use an answer file, the command would look something like this:
Cscript wim2vhd.wsf /wim:C:\temp\install.wim /sku:ultimate /unattend:C:\temp\unattend.xml

Converting a .WIM file into a VHD file is a fairly simple process. Even though this technique will allow a VHD file to be created from a Windows deployment image, the virtual hard drive still has to be deployed before the native boot can be used. The deployment process requires Windows Deployment Services and is similar to how a standard deployment image would be deployed, but you need to be aware of some VHD- specific steps. Microsoft offers a TechNet article that guides you through the entire deployment process.

ABOUT THE AUTHOR:   

[IMAGE]Brien M. Posey, MCSE
Brien M. Posey, MCSE, is a Microsoft Most Valuable Professional for his work with Exchange Server and has previously received Microsoft's MVP award for Windows Server and Internet Information Server (IIS). He has served as CIO for a nationwide chain of hospitals and was once responsible for the Department of Information Management at Fort Knox. As a freelance technical writer, Posey has written for Microsoft, TechTarget, CNET, ZDNet, MSD2D, Relevant Technologies and other technology companies. You can visit his personal website at www.brienposey.com.


Rate this Tip
To rate tips, you must be a member of SearchEnterpriseDesktop.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.



Enterprise Desktop Security - Virus Protection, Malware Protection, Intrusion Detection
HomeTopicsITKnowledge ExchangeTipsMultimediaWhite PapersBlogs
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 2008 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts