Windows 7 Pro sysprep 不工作

Windows 7 Pro sysprep 不工作

我正在嘗試對 Windows 7 Professional 電腦進行 sysprep,然後再取得用於在相同硬體上進行大規模部署的映像,並且很難讓 sysprep 正常工作(根本)。

我已經使用 WSIM 建立了一個 XML 應答文件,並且有一個基本的 setupcomplete.cmd 文件,但應答文件中的任何配置似乎都沒有應用。

我讀過 technet 文章並用谷歌搜索,但我仍然不知道為什麼會發生這種情況。有人可以查看我附加的答案文件並讓我知道哪裡出錯了嗎?

謝謝,卡勒姆

自動無人值守.XML

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <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">
            <AutoLogon>
                <Password>
                    <Value>**********************************</Value>
                    <PlainText>false</PlainText>
                </Password>
                <Username>administrator</Username>
                <LogonCount>1</LogonCount>
                <Enabled>true</Enabled>
            </AutoLogon>
            <WindowsFeatures>
                <ShowMediaCenter>false</ShowMediaCenter>
                <ShowWindowsMediaPlayer>false</ShowWindowsMediaPlayer>
            </WindowsFeatures>
            <CopyProfile>true</CopyProfile>
            <DoNotCleanTaskBar>true</DoNotCleanTaskBar>
            <RegisteredOrganization>SomeCompany (UK) Ltd.</RegisteredOrganization>
            <RegisteredOwner>SomeCompany User</RegisteredOwner>
            <ShowWindowsLive>false</ShowWindowsLive>
            <TimeZone>GMT Standard Time</TimeZone>
        </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="oobeSystem">
        <component name="Microsoft-Windows-International-Core" 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">
            <SystemLocale>en-UK</SystemLocale>
            <UserLocale>en-UK</UserLocale>
            <UILanguage>en-US</UILanguage>
            <InputLocale>0809:00000809</InputLocale>
        </component>
        <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">
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                <NetworkLocation>Work</NetworkLocation>
                <ProtectYourPC>1</ProtectYourPC>
            </OOBE>
            <UserAccounts>
                <AdministratorPassword>
                    <Value>*************************************************=</Value>
                    <PlainText>false</PlainText>
                </AdministratorPassword>
            </UserAccounts>
        </component>
        <component name="Microsoft-Windows-Deployment" 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">
            <Reseal>
                <Mode>OOBE</Mode>
            </Reseal>
        </component>
    </settings>
    <settings pass="generalize">
        <component name="Microsoft-Windows-Security-SPP" 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">
            <SkipRearm>0</SkipRearm>
        </component>
    </settings>
    <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">
            <UseConfigurationSet>true</UseConfigurationSet>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="wim:c:/wim/install.wim#Windows 7 PROFESSIONAL" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

答案1

答案是不要使用 HP 提供的 Windows 7 預設安裝 - HP 之前的 sysprep 嘗試未正確清理/清除,會對您的 sysprep 嘗試產生不利影響。

光碟

答案2

我已經嘗試解決這個問題幾個小時了,終於找到了解決方案。

我的特定問題是 Windows Shell 安裝程式的 OOBE 設定中的元件未正確應用。

這些設定涉及無人值守的 Windows 歡迎安裝,包括「隱藏 EULA 頁面」、「網路位置設定」和「保護您的電腦」等設定。

當我在 64 位元電腦上應用 sysprep 時,我的 unattend.xml 檔案是使用 WSIM 使用 32 位元 Windows 映像建立的,因此導致元件被忽略。

相關內容