Windows 7 上 SysPrep 的最小有用的 unattend.xml 文件是什么

Tom*_*zky 8 windows unattended windows-7 sysprep

您能否提供一个unattend.xml在 Windows 7 中使用的最小文件,它将在一个工作站上手动安装、更新和配置,然后 SysPrep 将像这样运行:

C:\Windows\System32\sysprep>
sysprep /generalize /oobe /unattend:unattend.xml /shutdown
Run Code Online (Sandbox Code Playgroud)

然后C:将分区克隆到多个工作站(partimage为此我使用了 Linux LiveUSB)。

unattend.xml应该配置一个工作站,以便在克隆后它不会要求任何东西。Workstation 应该只显示一个普通的登录屏幕,其中包含之前配置的帐户。它应该创建随机的计算机名称并且不要尝试加入 Active Directory,因为我不习惯将密码存储在unattend.xml.

我不想使用 Windows 自动安装工具包 (Windows AIK) 中的 Windows 系统映像管理器 (Windows SIM),因为这太过分了 — 对我的口味来说太复杂了。

Tom*_*zky 2

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend"
        xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <settings pass="generalize">
        <component name="Microsoft-Windows-PnpSysprep"
                processorArchitecture="amd64"
                publicKeyToken="31bf3856ad364e35"
                language="neutral" versionScope="nonSxS">
            <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>
        </component>
    </settings>
    <settings pass="specialize">
        <component name="Microsoft-Windows-Deployment"
                processorArchitecture="amd64"
                publicKeyToken="31bf3856ad364e35"
                language="neutral" versionScope="nonSxS">
            <RunSynchronous>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Disable create user account</Description>
                    <Path>reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Setup\OOBE /v UnattendCreatedUser /t REG_DWORD /d 1 /f</Path>
                    <Order>1</Order>
                </RunSynchronousCommand>
            </RunSynchronous>
        </component>
        <component name="Microsoft-Windows-Shell-Setup"
                processorArchitecture="amd64"
                publicKeyToken="31bf3856ad364e35"
                language="neutral" versionScope="nonSxS">
            <RegisteredOwner>Wile E. Coyote</RegisteredOwner>
            <RegisteredOrganization>ACME Corp.</RegisteredOrganization>
            <TimeZone>Central European Standard Time</TimeZone>
            <Computername>*</Computername>
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <NetworkLocation>Other</NetworkLocation>
                <ProtectYourPC>2</ProtectYourPC>
                <SkipUserOOBE>true</SkipUserOOBE>
            </OOBE>
        </component>
    </settings>
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-International-Core"
                processorArchitecture="amd64"
                publicKeyToken="31bf3856ad364e35"
                language="neutral" versionScope="nonSxS">
            <InputLocale>pl-PL</InputLocale>
            <SystemLocale>pl-PL</SystemLocale>
            <UILanguage>pl-PL</UILanguage>
            <UserLocale>pl-PL</UserLocale>
        </component>
    </settings>
</unattend>
Run Code Online (Sandbox Code Playgroud)

你只需要改变:

  • <RegisteredOwner>
  • <RegisteredOrganization>
  • <TimeZone>
  • 波兰语语言环境pl-PL到您的语言环境,例如en-US美国。