Windows 2008 R2 预激活模板 (SYSPREP)

Windows 2008 R2 预激活模板 (SYSPREP)

我正在尝试配置预激活的 Windows 2008 R2 模板映像。我已阅读过许多资料,它们都说要使用 Microsoft-Windows-Security-SPP\SkipRearm 选项,但即使使用此选项,它似乎也不起作用:我将配置模板映像,激活 Windows,然后运行 ​​sysprep ( c:\windows\system32\sysprep\sysprep.exe /generalize /oobe /shutdown /unattend:c:\Sysprep\sysprep.xml),但是当我将此映像部署到新计算机时,我在系统控制面板中看到“您有三天时间激活 Windows”消息。注意:请记住,使用的许可证来自 SPLA,而不是零售许可证。

据我从众多来源得知,SkipRearm 设置应该允许我们部署预先激活的新机器。我这里漏掉了什么吗?下面是我的 sysprep.xml。

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <servicing></servicing>
    <settings pass="windowsPE">
        <component name="Microsoft-Windows-Setup">
            <UserData>
                <ProductKey>
                    <Key>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</Key>
                </ProductKey>
                <AcceptEula>true</AcceptEula>
                <FullName>Company</FullName>
                <Organization>Company</Organization>
            </UserData>
            <EnableFirewall>false</EnableFirewall>
            <Restart>Restart</Restart>
            <EnableNetwork>true</EnableNetwork>
        </component>
        <component name="Microsoft-Windows-International-Core-WinPE">
            <SetupUILanguage>
                <UILanguage>en-US</UILanguage>
            </SetupUILanguage>
            <InputLocale>en-US</InputLocale>
            <SystemLocale>en-US</SystemLocale>
            <UILanguage>en-US</UILanguage>
            <UILanguageFallback>en-US</UILanguageFallback>
            <UserLocale>en-US</UserLocale>
        </component>
    </settings>
    <settings pass="specialize">
        <component name="Microsoft-Windows-Shell-Setup">
            <ComputerName>*</ComputerName>
            <ProductKey>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</ProductKey>
            <TimeZone>Eastern Standard Time</TimeZone>
            <ShowWindowsLive>false</ShowWindowsLive>
            <CopyProfile>true</CopyProfile>
            <RegisteredOrganization>Company</RegisteredOrganization>
            <RegisteredOwner>Company</RegisteredOwner>
        </component>
    </settings>
    <settings pass="generalize">
        <component name="Microsoft-Windows-OutOfBoxExperience">
            <DoNotOpenInitialConfigurationTasksAtLogon>true</DoNotOpenInitialConfigurationTasksAtLogon>
        </component>
        <component name="Microsoft-Windows-ServerManager-SvrMgrNc">
            <DoNotOpenServerManagerAtLogon>true</DoNotOpenServerManagerAtLogon>
        </component>
        <component name="Microsoft-Windows-Security-SPP">
            <SkipRearm>1</SkipRearm>
        </component>
    </settings>
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-Shell-Setup">
            <UserAccounts>
                <AdministratorPassword>
                    <Value>Password123!</Value>
                    <PlainText>true</PlainText>
                </AdministratorPassword>
            </UserAccounts>
            <Themes>
                <DefaultThemesOff>true</DefaultThemesOff>
            </Themes>
            <TimeZone>Eastern Standard Time</TimeZone>
            <FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>cmd /c rd /S /Q c:\Sysprep</CommandLine>
                    <Description>Remove Sysprep Dir</Description>
                    <Order>1</Order>
                </SynchronousCommand>
            </FirstLogonCommands>
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
            </OOBE>
        </component>
        <component name="Microsoft-Windows-International-Core">
            <InputLocale>en-US</InputLocale>
            <SystemLocale>en-US</SystemLocale>
            <UILanguage>en-US</UILanguage>
            <UILanguageFallback>en-US</UILanguageFallback>
            <UserLocale>en-US</UserLocale>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="wim:e:/tools/waik/windows2008r2/install.wim#Windows Server 2008 R2 SERVERSTANDARD" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

答案1

您不能同时使用 Generalize、SkipRearm 和 OOBE。Generalize 过程会创建所有新的许可信息,因此它将覆盖现有激活,除非指定 SkipRearm。但是,当同时指定 Generalize 和 OOBE 时,将忽略 SkipRearm。密钥还必须是 MAK 密钥(使用 Generalize/SkipRearm 时);零售密钥只能与 OOBE 一起使用;或 VL(但如果您有 VL 密钥,则无论如何都应该使用 KMS);听起来您有正确的密钥。

更新:修复了选项组合的遗漏。参考:Sysprep 的工作原理

相关内容