Automate your Vista DVD Deployments

Automate your Vista DVD Deployments

  • Comments 3
  • Likes

This is a sample script you can use to automate the installation of Vista.  Copy & paste the following text to notepad, replace the product key with your product key, and save the file with the name autounattend.xml.  To use this, copy the autounattend.xml to a USB key.  On a computer you wish to install vista, turn on the computer, insert the Vista DVD in the DVD-ROM, and plug in the USB key.  Make the DVD-ROM the bootable device.  Vista will fully install automatically.

Warning!  Do not do this on a computer that contains data you do not wish to lose.  This answer file will wipe out any existing partitions without prompting conformation.

---------------------------------------------------------------------------------------------

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
        <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <SetupUILanguage>
                <UILanguage>en-US</UILanguage>
            </SetupUILanguage>
            <InputLocale>0409:00000409</InputLocale>
            <SystemLocale>en-US</SystemLocale>
            <UILanguage>en-US</UILanguage>
            <UILanguageFallback>en-US</UILanguageFallback>
            <UserLocale>en-US</UserLocale>
        </component>
        <component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <DiskConfiguration>
                <Disk wcm:action="add">
                    <CreatePartitions>
                        <CreatePartition wcm:action="add">
                            <Extend>false</Extend>
                            <Type>Primary</Type>
                            <Order>1</Order>
                            <Size>40000</Size>
                        </CreatePartition>
                    </CreatePartitions>
                    <ModifyPartitions>
                        <ModifyPartition wcm:action="add">
                            <Order>1</Order>
                            <PartitionID>1</PartitionID>
                            <Format>NTFS</Format>
                            <Letter>C</Letter>
                            <Extend>true</Extend>
                        </ModifyPartition>
                    </ModifyPartitions>
                    <DiskID>0</DiskID>
                    <WillWipeDisk>true</WillWipeDisk>
                </Disk>
            </DiskConfiguration>
            <ImageInstall>
                <OSImage>
                    <InstallTo>
                        <DiskID>0</DiskID>
                        <PartitionID>1</PartitionID>
                    </InstallTo>
                    <WillShowUI>OnError</WillShowUI>
                </OSImage>
            </ImageInstall>
            <UserData>
                <ProductKey>
                    <Key>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</Key>
                    <WillShowUI>OnError</WillShowUI>
                </ProductKey>
                <AcceptEula>true</AcceptEula>
            </UserData>
        </component>
    </settings>
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <OEMInformation>
                <Logo>E:\oemlogo.bmp</Logo>
                <Manufacturer>Fabrikam</Manufacturer>
                <Model>Superfast1000</Model>
                <SupportHours>Anytime, day or night</SupportHours>
                <SupportPhone>1-800-SUPPORT</SupportPhone>
                <SupportURL>www.fabrikam.com</SupportURL>
            </OEMInformation>
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <ProtectYourPC>1</ProtectYourPC>
                <SkipMachineOOBE>true</SkipMachineOOBE>
                <SkipUserOOBE>true</SkipUserOOBE>
            </OOBE>
            <AutoLogon>
                <Password>
                    <Value>Password</Value>
                    <PlainText>true</PlainText>
                </Password>
                <Username>Administrator</Username>
                <Enabled>true</Enabled>
                <LogonCount>5</LogonCount>
            </AutoLogon>
            <UserAccounts>
                <AdministratorPassword>
                    <Value>Password</Value>
                    <PlainText>true</PlainText>
                </AdministratorPassword>
            </UserAccounts>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="wim:c:/documents%20and%20settings/vmux/desktop/sourceos/install.wim#Windows Vista ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
---------------------------------------------------------------------------------------------

Victor Mux

Comments
  • Most of us will want to automate the deployment of Windows Vista. Bob has a cool sample script that can...

  • I figured out when i tried to use this I had to be useing a 32-bit vista dvd it would not work with a 64-bit disk what changes do I need to make to use a 64-bit copy. also I do not know the differance between HomeBasic and

    HomeBasicN

    or

    Business and BusinessN

    please explain

  • tntcomp:  I ran into the same problem.  After a lot of pain with WAIK, I realized that the only thing really different is that processorArchitecture needs to be "amd64" instead of "x86".  If you can get it running without crashing (and that's a big IF) WIAK specifically for SP1 ( http://www.microsoft.com/downloads/details.aspx?FamilyID=94bb6e34-d890-4932-81a5-5b50c657de08&DisplayLang=en ), makes it pretty easy to tell which components go where.

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment