无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 23167|回复: 121
打印 上一主题 下一主题

[分享] 最完美精简的无人参与的应答文件

    [复制链接]
跳转到指定楼层
#
发表于 2022-8-31 10:36:25 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
本帖最后由 chishingchan 于 2024-1-22 10:40 编辑

文本格式:
ANSI

文件名称 及 存放位置:
U:\x64\sources\$oem$\$$\Panther\unattend.xml
与/或
U:\x86\sources\$oem$\$$\Panther\unattend.xml

以下内容以64位为例:        64位:amd64;32位:x86
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--https://docs.microsoft.com/zh-cn/windows-hardware/customize/desktop/unattend/-->
  3. <unattend xmlns="urn:schemas-microsoft-com:unattend">
  4.         <settings pass="windowsPE">
  5.                 <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  6.                         <UserData>
  7.                                 <!--指定是否自动接受 Microsoft 软件许可条款。默认值=false:否|true:是-->
  8.                                 <AcceptEula>true</AcceptEula>
  9.                                 <!--指定最终用户的名称。长度最大为 63 个字符的字符串-->
  10.                                 <FullName>Windows</FullName>
  11.                                 <!--指定拥有计算机的组织的名称。长度最大为 63 个字符的字符串-->
  12.                                 <Organization>Microsoft</Organization>
  13.                         </UserData>
  14.                 </component>
  15.         </settings>
  16.         <settings pass="specialize">
  17.                 <component name="Microsoft-Windows-SystemRestore-Main" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  18.                         <!--启用或禁用系统还原。默认值=0:启用|1:禁用-->
  19.                         <DisableSR>1</DisableSR>
  20.                 </component>
  21.                 <component name="Microsoft-Windows-ErrorReportingCore" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  22.                         <!--禁用 Windows 错误报告。默认值=0:启用|1:禁用-->
  23.                         <DisableWER>1</DisableWER>
  24.                 </component>
  25.                 <component name="Microsoft-Windows-SQMApi" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  26.                         <!--指示是否启用了 Windows 客户体验改善计划 (CEIP)。默认值=1:是|0:否-->
  27.                         <CEIPEnabled>0</CEIPEnabled>
  28.                 </component>
  29.                 <component name="Microsoft-Windows-LUA-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  30.                         <!--指定 Windows 用户帐户控制 (UAC) 是否在程序尝试更改计算机时通知用户。默认值=true:是|false:否-->
  31.                         <EnableLUA>false</EnableLUA>
  32.                 </component>
  33.                 <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  34.                         <!--为用户启动 Internet Explorer 时显示的默认主页-->
  35.                         <Home_Page>https://cn.bing.com/</Home_Page>
  36.                         <!--指定用户首次运行 Windows Internet Explorer 时是否跳过首次运行向导。默认值=false:否|true:是-->
  37.                         <DisableFirstRunWizard>true</DisableFirstRunWizard>
  38.                 </component>
  39.                 <!--
  40.                 <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  41.                         <RunSynchronous>
  42.                                 <RunSynchronousCommand wcm:action="add">
  43.                                         <Description>迁移“我的文档”的位置</Description>
  44.                                         <Order>1</Order>
  45.                                         <Path>reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /f /v "CMD" /t REG_SZ /d "%SystemRoot%\Setup\Scripts\DataMove.cmd"</Path>
  46.                                 </RunSynchronousCommand>
  47.                         </RunSynchronous>
  48.                 </component>
  49.                 -->
  50.         </settings>
  51.         <settings pass="oobeSystem">
  52.                 <component name="Microsoft-Windows-WinRE-RecoveryAgent" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  53.                         <!--指定是否在系统中安装或删除 Windows 恢复环境。默认值=false:安装|true:删除-->
  54.                         <UninstallWindowsRE>true</UninstallWindowsRE>
  55.                 </component>
  56.                 <component name="Security-Malware-Windows-Defender" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  57.                         <!--指定是否禁用 Microsoft Defender 防病毒。默认值=false:否|true:是-->
  58.                         <DisableAntiSpyware>true</DisableAntiSpyware>
  59.                 </component>
  60.                 <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  61.                         <OOBE>
  62.                                 <!--指定是否隐藏“欢迎使用 Windows”的 Microsoft 软件许可条款页面。默认值=false:否|true:是-->
  63.                                 <HideEULAPage>true</HideEULAPage>
  64.                                 <!--指定是否隐藏在欢迎 Windows 期间显示的“加入无线网络”屏幕。默认值=false:否|true:是-->
  65.                                 <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
  66.                                 <!--指定在用户首次登录时,计算机连接到网络时的网络位置。家庭网络:Home|工作网络:Work|禁用网络发现:Other-->
  67.                                 <NetworkLocation>Work</NetworkLocation>
  68.                                 <!--指定“快速”设置是否。1=2:打开|3:关闭-->
  69.                                 <ProtectYourPC>3</ProtectYourPC>
  70.                         </OOBE>
  71.                         <!--指定用于自动登录到计算机的帐户-->
  72.                         <AutoLogon>
  73.                                 <!--指定用于自动登录的用户帐户名。-->
  74.                                 <Username>Administrator</Username>
  75.                                 <!--指定是否启用自动登录过程。-->
  76.                                 <Enabled>true</Enabled>
  77.                                 <!--指定可以登录到计算机的次数。-->
  78.                                 <LogonCount>1</LogonCount>
  79.                         </AutoLogon>
  80.                         <!--指定用户配置文件文件夹的路径。-->
  81.                         <FolderLocations>
  82.                             <ProfilesDirectory>X:\Users</ProfilesDirectory>
  83.                             <ProgramData>X:\ProgramData</ProgramData>
  84.                         </FolderLocations>
  85.                         <!--指定要在用户首次登录到计算机时运行的命令。-->
  86.                         <FirstLogonCommands>
  87.                                 <SynchronousCommand wcm:action="add">
  88.                                         <CommandLine>%SystemRoot%\Setup\Scripts\DataMove.cmd</CommandLine>
  89.                                         <Description>Migrate My Document Location</Description>
  90.                                         <Order>1</Order>
  91.                                 </SynchronousCommand>
  92.                         </FirstLogonCommands>
  93.                 </component>
  94.         </settings>
  95. </unattend>
复制代码


注意:附件格式所限,请将后缀 .txt 删除!
unattend.xml.txt (3.49 KB, 下载次数: 303)

评分

参与人数 4无忧币 +10 收起 理由
wangjf + 3 很给力!
vrboxing + 1
ilikeyi + 1 文件格式应该是:UTF8,不能带 BOM。
fulibo + 5 赞一个!

查看全部评分

109#
发表于 昨天 17:59 | 只看该作者
谢谢
回复

使用道具 举报

108#
发表于 4 天前 | 只看该作者
这个脚本很棒,收藏了
回复

使用道具 举报

107#
发表于 5 天前 | 只看该作者
按键精灵是不是可以达到一样的效果
回复

使用道具 举报

106#
发表于 5 天前 | 只看该作者
感谢楼主的测试和反馈了
回复

使用道具 举报

105#
发表于 2024-4-3 12:17:59 | 只看该作者
谢谢分享
回复

使用道具 举报

104#
发表于 2024-4-3 10:40:55 | 只看该作者
这是一个神仙帖子,我感觉离自定义WIM又近了一步。
回复

使用道具 举报

103#
发表于 2024-4-3 05:46:12 | 只看该作者
谢谢分享
回复

使用道具 举报

102#
发表于 2024-2-25 12:49:14 | 只看该作者
学习了
回复

使用道具 举报

101#
发表于 2024-2-22 20:04:24 | 只看该作者
这个好
回复

使用道具 举报

100#
发表于 2024-1-25 08:48:21 | 只看该作者
謝謝分享 學到了
回复

使用道具 举报

99#
发表于 2024-1-19 13:54:13 | 只看该作者
正好需要用到,感谢楼主分享
回复

使用道具 举报

98#
发表于 2024-1-15 11:25:06 | 只看该作者
回复

使用道具 举报

97#
发表于 2024-1-13 13:54:52 | 只看该作者
下载了
回复

使用道具 举报

96#
发表于 2024-1-11 14:00:20 | 只看该作者

大佬出手了,试试看
回复

使用道具 举报

95#
发表于 2024-1-9 20:28:11 | 只看该作者
谢谢分享
回复

使用道具 举报

94#
发表于 2023-12-22 11:41:31 | 只看该作者
在哪都能用?
回复

使用道具 举报

93#
发表于 2023-12-22 09:18:31 | 只看该作者

支持
回复

使用道具 举报

92#
发表于 2023-12-21 11:30:23 | 只看该作者
这个脚本验证起来太麻烦了,纯支持。还是正常安装再按需手动优化算了
回复

使用道具 举报

91#
发表于 2023-12-21 00:30:42 | 只看该作者

不知道大神你判定无效的原因是什么。
自测在windows7 64位下部分有效,如,systeminfo --> 注册的组织 有效。
关于Fullname 确实没看到在哪里生效了。
回复

使用道具 举报

90#
发表于 2023-12-20 22:08:29 | 只看该作者
学习了
回复

使用道具 举报

89#
发表于 2023-7-1 09:28:25 | 只看该作者
感谢分享
回复

使用道具 举报

88#
发表于 2023-7-1 08:59:09 | 只看该作者
能不能跳过"你的数据将在你所在的国家或地区之外进行处理"这个界面?
回复

使用道具 举报

87#
发表于 2023-5-31 22:05:45 | 只看该作者

大佬出手了,试试看
回复

使用道具 举报

86#
发表于 2023-5-26 20:40:42 | 只看该作者
学习
回复

使用道具 举报

85#
发表于 2023-5-25 19:57:25 | 只看该作者
这个可以,写得很详细,学到了
回复

使用道具 举报

84#
发表于 2023-5-15 12:30:25 | 只看该作者
谢谢分享
回复

使用道具 举报

83#
发表于 2023-4-29 14:29:04 | 只看该作者
感谢分享
回复

使用道具 举报

82#
发表于 2023-4-26 09:15:04 | 只看该作者
感谢分享
回复

使用道具 举报

81#
发表于 2023-4-24 10:46:34 | 只看该作者
谢谢提供分享
回复

使用道具 举报

80#
发表于 2023-4-23 22:54:02 | 只看该作者
本帖最后由 chshrm 于 2023-4-23 22:56 编辑

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


<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
        <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" 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>zh-CN</UILanguage>
            </SetupUILanguage>
            <InputLocale>zh-CN</InputLocale>
            <UILanguage>zh-CN</UILanguage>
            <SystemLocale>zh-CN</SystemLocale>
            <UserLocale>zh-CN</UserLocale>
        </component>

        <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <EnableNetwork>false</EnableNetwork>

            <UserData>
                <AcceptEula>true</AcceptEula>
                <FullName>Administrator</FullName>
                <ProductKey>
                    <Key>XGVPP-NMH47-7TTHJ-W3FW7-8HV2C</Key>
                </ProductKey>
            </UserData>

            <ImageInstall>
                <OSImage>
                    <InstallFrom>
                        <MetaData wcm:action="add">
                            <Key>/IMAGE/NAME</Key>
                            <Value>Windows 10 Enterprise</Value>
                        </MetaData>
                    </InstallFrom>

                    <InstallTo>
                        <DiskID>0</DiskID>
                        <PartitionID>3</PartitionID>
                    </InstallTo>
                </OSImage>
            </ImageInstall>
        </component>
    </settings>

    <settings pass="specialize">
        <component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <SkipAutoActivation>true</SkipAutoActivation>
        </component>

        <component name="Microsoft-Windows-SQMApi" processorArchitecture="amd64" 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="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <ProductKey>XGVPP-NMH47-7TTHJ-W3FW7-8HV2C</ProductKey>
        </component>
    </settings>

    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <InputLocale>zh-CN</InputLocale>
            <UILanguage>zh-CN</UILanguage>
            <SystemLocale>zh-CN</SystemLocale>
            <UserLocale>zh-CN</UserLocale>
        </component>

        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" 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/>
                    <PlainText>true</PlainText>
                </Password>
                <Enabled>true</Enabled>
                <Username>Administrator</Username>
            </AutoLogon>

            <UserAccounts>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
                        <Password>
                            <Value/>
                            <PlainText>true</PlainText>
                        </Password>
                        <DisplayName>Administrator</DisplayName>
                        <Group>Administrators</Group>
                        <Name>Administrator</Name>
                    </LocalAccount>
                </LocalAccounts>
            </UserAccounts>

            <RegisteredOwner>Administrator</RegisteredOwner>

            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                <HideLocalAccountScreen>true</HideLocalAccountScreen>
                <ProtectYourPC>3</ProtectYourPC>
            </OOBE>

            <FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                    <Order>1</Order>
                    <CommandLine>cmd /C del /f /q %WINDIR%\Panther\unattend.xml</CommandLine>
                </SynchronousCommand>
            </FirstLogonCommands>
        </component>
    </settings>
</unattend>

我一直用这个,并且装机完无论是win10企业版还是win11企业版,安装完就自动激活了。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-5-5 09:48

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表