Jump to content

unattend/sysprep/imagex errors


Recommended Posts

Is anyone having big problems with preparing an image for deployment? Most of the settings I am specifying in the Windows AIK, such as turning off the Sidebar, or providing the product key, are completely ignored by the Windows Setup process. I know the unattend.xml file is getting used, becuase some of the settings are being applied, and they are specified in the same setup phase as those that aren't working at all...so...can I chalk this up to beta? Anyone else noticing this?

Also, once I resign myself to manually tweaking my beta build, after I sysprep and image, I can't redeploy the image I create to any other computers. After running:

sysprep /audit /generalize /shutdown /unattend:<filename>

the computer does it's sysprep thing and shuts down. I use WinPE 2.0 to capture a .wim of the hard drive:

imagex /capture c:\ z:\<imagename> "Image Name"

On the next boot of the same computer, everything works great, except for most of the unattend.xml file's settings being ignored. However, if I deploy the .wim to any other computers, or redeploy it to my build machine, I get one of a large variety of error messages, ranging from "Windows cannot configure the hardware on this computer" to "A serious error has occurred. Please restart Setup." Bear in mind that the computer in question has run Vista through the sysprep process once before...but never again...

I have to be doing something wrong. Hopefully someone has encountered these issues before...I'm about to just give up!

Link to comment
Share on other sites


Fizban, if I don't boot to audit mode, the driver path I inserted using the System Image Manager won't be included. Should I instead be injecting these drivers in offline mode?

Thanks,

Andrew

i would inject all your drivers that are common for your computers in offline mode, if the only reason to go into audit mode (ie apps and such you want installed before booting for the first time,

from the CHM Unattend Windows Setup Reference

Build a Reference Image Scenario

In this scenario, you create a single Windows reference image that you can reuse throughout your environment. This scenario involves the following steps:

1. You start with a Windows product DVD and an answer file.

2. You boot the Windows product DVD.

3. Windows Setup starts and the windowsPE and offlineServicing passes run.

4. After the Windows image is copied to the hard disk, the system reboots and Windows Setup runs the specialize pass.

5. After Windows Setup completes, the oobeSystem configuration pass runs and Windows Welcome starts.

6. You can make additional modifications to the system. Install applications, device drivers, or other configurations.

this is a good time to install a common apps and drivers for your machines (ie office, adobe reader etc,)

7. When you complete your modifications, you run sysprep /generalize /audit /reboot. This command runs the generalize pass and then removes any system-specific data. Also, this configures Windows to run audit mode on the next boot (running the auditSystem and auditUser configuration passes).

the Audit pass is a time where you would launch scripts and files for specific computers or roles for computers. Say you launch a script to check if a computer has a CD-burner and enable windows cd-burning, of check to see if a computer is a laptop and then install or configure VPN software for it. if you are doing other steps here it would also be a good time for drivers if you have alot of different makes and models.

This image then becomes your reference image that you can save to install on computers of the same configuration.

Link to comment
Share on other sites

Fizban,

Perhaps I should more clearly explain what I'm doing. I think I understand what you're saying, but I want to make sure. I've got TONS of XP image/build experience, but Vista and all the phases are kinda throwing me for a loop.

I have an environment comprised 100% of IBM Thinkpad laptops. Anywhere from the T40 to the T43, and a few X41 tablets thrown in for good measure. I want to have an image that I can deploy to any of these machines, so I don't have to worry about building/maintaining a per machine image. To that end, I was following these steps:

1. Deploy image to baseline machine, with unattend.xml file.

2. Allow to boot normally.

3. Apply common customizations (install flash, shockwave, look & feel tweaks)

4. Specify with unattend.xml file the network location of a driver repository containing all the drivers for all of my models

5. Sysprep /audit /generalize, so on the next boot, Windows checks that driver database and installs any required drivers, generalizes the hardware, etc.

6. Capture an image. This would be the image I would deploy to all my new laptops.

7. Boot to audit mode, make sure all hardware is detected, etc.

8. Boot to OOBE mode (which would, optimally, be nearly totally skipped, as I'm joining a domain automatically during the specialize phase, specifying product key, what kind of network I'm on, etc...but this doesn't seem to be working.

9. Log in for first time with user, double check things are working.

10. Hand off to user.

The steps you listed, as I read them, directly mirror what I am trying to do.

Link to comment
Share on other sites

This is my unattend.xml file. Sorry the tabbing goes away when I post...If anyone knows how to fix this, lemme know and repost/edit.

<?xml version="1.0" encoding="utf-8"?>

<unattend xmlns="urn:schemas-microsoft-com:unattend">

<settings pass="windowsPE">

<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>

<CreatePartitions>

<CreatePartition wcm:action="add">

<Order>1</Order>

<Type>Primary</Type>

<Extend>true</Extend>

</CreatePartition>

</CreatePartitions>

<ModifyPartitions>

<ModifyPartition wcm:action="add">

<Active>true</Active>

<Extend>false</Extend>

<Format>NTFS</Format>

<Letter>C</Letter>

<Order>1</Order>

<PartitionID>1</PartitionID>

<Label />

</ModifyPartition>

</ModifyPartitions>

<DiskID>0</DiskID>

<WillWipeDisk>true</WillWipeDisk>

</Disk>

<WillShowUI>OnError</WillShowUI>

</DiskConfiguration>

<UserData>

<ProductKey>

<Key>xxxxx-xxxxx-xxxxx-xxxxx-xxxxx</Key>

<WillShowUI>OnError</WillShowUI>

</ProductKey>

<AcceptEula>true</AcceptEula>

<FullName>FullName</FullName>

<Organization>Org</Organization>

</UserData>

<ImageInstall>

<OSImage>

<InstallTo>

<DiskID>0</DiskID>

<PartitionID>1</PartitionID>

</InstallTo>

<WillShowUI>OnError</WillShowUI>

</OSImage>

</ImageInstall>

</component>

<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>

<UserLocale>en-US</UserLocale>

</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>

<Model>Windows Vista RC1 Internal Beta</Model>

<SupportHours></SupportHours>

<SupportPhone></SupportPhone>

<HelpCustomized>false</HelpCustomized>

<SupportURL>URL</SupportURL>

</OEMInformation>

<DoNotCleanTaskBar>true</DoNotCleanTaskBar>

<RegisteredOrganization>Org</RegisteredOrganization>

<RegisteredOwner>Owner</RegisteredOwner>

<ShowWindowsLive>false</ShowWindowsLive>

<StartPanelOff>false</StartPanelOff>

<OOBE>

<HideEULAPage>true</HideEULAPage>

<NetworkLocation>Work</NetworkLocation>

<ProtectYourPC>3</ProtectYourPC>

<SkipUserOOBE>true</SkipUserOOBE>

</OOBE>

</component>

<component name="Microsoft-Windows-Sidebar" 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">

<Gadget1 />

<Gadget2 />

<Gadget3 />

<SidebarOnByDefault>false</SidebarOnByDefault>

<SidebarVisible>false</SidebarVisible>

</component>

</settings>

<settings pass="specialize">

<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>

<HelpCustomized>false</HelpCustomized>

<Model>Windows Vista RC1 Internal Beta</Model>

<SupportURL>URL</SupportURL>

</OEMInformation>

<ProductKey>xxxxx-xxxxx-xxxxx-xxxxx-xxxxx</ProductKey>

<RegisteredOrganization>RegOrg</RegisteredOrganization>

<RegisteredOwner>RegOwner</RegisteredOwner>

<ShowWindowsLive>false</ShowWindowsLive>

<StartPanelOff>false</StartPanelOff>

<CopyProfile>true</CopyProfile>

<DoNotCleanTaskBar>true</DoNotCleanTaskBar>

</component>

<component name="Microsoft-Windows-IE-InternetExplorer" 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">

<FavoritesList>

Removed

</FavoritesList>

<QuickLinkList>

Removed

</QuickLinkList>

<StartPages>

Removed

</StartPages>

<AllowedSites>Sites</AllowedSites>

<BlockPopups>yes</BlockPopups>

<CompanyName>Name</CompanyName>

<FavoritesDelete>true</FavoritesDelete>

<FavoritesOnTop>true</FavoritesOnTop>

<Help_Page>URL</Help_Page>

<ShowInformationBar>true</ShowInformationBar>

<Home_Page />

<IEWelcomeMsg>false</IEWelcomeMsg>

<LocalIntranetSites>Intranet</LocalIntranetSites>

<TrustedSites>Trusted</TrustedSites>

<Window_Title_CN>Title</Window_Title_CN>

</component>

<component name="Microsoft-Windows-SystemRestore-Main" 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">

<DisableSR>1</DisableSR>

</component>

<component name="Microsoft-Windows-UnattendedJoin" 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">

<Identification>

<Credentials>

<Domain>Domain</Domain>

<Password>PW</Password>

<Username>User</Username>

</Credentials>

<JoinDomain>Domain</JoinDomain>

<MachineObjectOU>OU</MachineObjectOU>

</Identification>

</component>

<component name="Microsoft-Windows-TerminalServices-LocalSessionManager" 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">

<fDenyTSConnections>false</fDenyTSConnections>

</component>

<component name="Microsoft-Windows-TerminalServices-RDP-WinStationExtensions" 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">

<SecurityLayer>0</SecurityLayer>

</component>

<component name="Microsoft-Windows-SQMApi" 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">

<CEIPEnabled>0</CEIPEnabled>

</component>

<component name="Networking-MPSSVC-Svc" 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">

<DomainProfile_DisableNotifications>true</DomainProfile_DisableNotifications>

<DomainProfile_EnableFirewall>false</DomainProfile_EnableFirewall>

<PrivateProfile_DisableNotifications>true</PrivateProfile_DisableNotifications>

<PrivateProfile_EnableFirewall>false</PrivateProfile_EnableFirewall>

<PublicProfile_DisableNotifications>true</PublicProfile_DisableNotifications>

<PublicProfile_EnableFirewall>false</PublicProfile_EnableFirewall>

</component>

<component name="Security-Malware-Windows-Defender" 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">

<DisableAntiSpyware>true</DisableAntiSpyware>

</component>

</settings>

<settings pass="generalize">

<component name="Microsoft-Windows-BrowserService" 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">

<MaintainServerList>No</MaintainServerList>

</component>

</settings>

<settings pass="auditSystem">

<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">

<AutoLogon>

<Password>

<Value>KgB3AGkAcgBlAGQATQBBAFQAUgBJAFgAKgBQAGEAcwBzAHcAbwByAGQA</Value>

<PlainText>false</PlainText>

</Password>

<Enabled>true</Enabled>

<Username>Administrator</Username>

</AutoLogon>

<UserAccounts>

<AdministratorPassword>

<Value>KgB3AGkAcgBlAGQATQBBAFQAUgBJAFgAKgBBAGQAbQBpAG4AaQBzAHQAcgBhAHQAbwByAFAAYQBzAHMAdwBvAHIAZAA=</Value>

<PlainText>false</PlainText>

</AdministratorPassword>

</UserAccounts>

<ShowWindowsLive>false</ShowWindowsLive>

<DoNotCleanTaskBar>true</DoNotCleanTaskBar>

</component>

<component name="Microsoft-Windows-PnpCustomizationsNonWinPE" 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">

<DriverPaths>

<PathAndCredentials wcm:keyValue="b29728d8" wcm:action="add">

<Path>\\schidep200\Vista\Deployment\Vista\Distribution\Out-of-Box Drivers</Path>

<Credentials>

<Domain>Domain</Domain>

<Password>xxxxxxx</Password>

<Username>User</Username>

</Credentials>

</PathAndCredentials>

</DriverPaths>

</component>

</settings>

<cpi:offlineImage cpi:source="wim://schidep200/deployment/vista/source/sources/install.wim#Windows Vista BUSINESS" xmlns:cpi="urn:schemas-microsoft-com:cpi" />

</unattend>

Edited by androidtopp
Link to comment
Share on other sites

<component name="Microsoft-Windows-Sidebar" 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">

<Gadget1 />

<Gadget2 />

<Gadget3 />

<SidebarOnByDefault>false</SidebarOnByDefault>

<SidebarVisible>false</SidebarVisible>

</component>

This section - the Gadget tags - looks strange to me. Have you validated the file with WAIK?

Martin

Edited by FireGeier
Link to comment
Share on other sites

If I set something for Gadget I get this:

<settings pass="oobeSystem">
<component name="Microsoft-Windows-Sidebar" 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">
<Gadget4>%PROGRAMFILES%\windows sidebar\gadgets\RSS.Gadget,true</Gadget4>
</component>
</settings>

I would delete the entries, too. But the WSIM-Help says it would be done automatically, if you don't fill in something.

Martin

Link to comment
Share on other sites

Are you actually getting *this part* to work:

<OOBE>

<HideEULAPage>true</HideEULAPage>

<NetworkLocation>Work</NetworkLocation>

<ProtectYourPC>3</ProtectYourPC>

<SkipUserOOBE>true</SkipUserOOBE>

</OOBE>

Everytime I run sysprep /oobe /generalize /reboot with an unattend file, every time I log back into my account after it's gone through startup, it's asking me to set the Network Location again -- *and* telling me that Windows Update is not configured.

Link to comment
Share on other sites

So maybe I'm not totally crazy...not all of the unattended settings are working properly. And while we're at it...what's the deal with the new (5728 and 5744) builds not working with the new version of the BDD (3.3)? The BDD is useless to businesses if they can't test what Microsoft is actually planning on releasing...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...