加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

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

发布时间:2020-12-13 23:54:35 所属栏目:Windows 来源:网络整理
导读:您是否可以提供在 Windows 7中使用的最小unattend.xml文件,该文件将在一个工作站上手动安装,更新和配置,然后SysPrep将如下运行: C:WindowsSystem32sysprepsysprep /generalize /oobe /unattend:unattend.xml /shutdown 然后C:分区克隆到多个工作站(我使
您是否可以提供在 Windows 7中使用的最小unattend.xml文件,该文件将在一个工作站上手动安装,更新和配置,然后SysPrep将如下运行:
C:WindowsSystem32sysprep>
sysprep /generalize /oobe /unattend:unattend.xml /shutdown

然后C:分区克隆到多个工作站(我使用Linux LiveUSB中的partimage).

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

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

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

你只需要改变:

>< RegisteredOwner>>< RegisteredOrganization>>< TimeZone>>波兰语locale pl-PL到你的,例如美国的en-US.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读