无忧启动论坛

标题: 最完美精简的无人参与的应答文件 [打印本页]

作者: chishingchan    时间: 2022-8-31 10:36
标题: 最完美精简的无人参与的应答文件
本帖最后由 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, 下载次数: 316)
作者: chishingchan    时间: 2022-8-31 10:37
亲测无效部分:
  1.         <settings pass="windowsPE">
  2.                 <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">
  3.                         <UserData>
  4.                                 <!--指定是否自动接受 Microsoft 软件许可条款。默认值=false:否|true:是-->
  5.                                 <AcceptEula>true</AcceptEula>
  6.                                 <!--指定最终用户的名称。长度最大为 63 个字符的字符串-->
  7.                                 <FullName>Windows</FullName>
  8.                                 <!--指定拥有计算机的组织的名称。长度最大为 63 个字符的字符串-->
  9.                                 <Organization>Microsoft</Organization>
  10.                         </UserData>
  11.                 </component>
  12.         </settings>
复制代码

作者: chishingchan    时间: 2022-8-31 10:38
本帖最后由 chishingchan 于 2024-1-22 10:41 编辑

没有注释:
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <unattend xmlns="urn:schemas-microsoft-com:unattend">
  3.         <settings pass="specialize">
  4.                 <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">
  5.                         <DisableSR>1</DisableSR>
  6.                 </component>
  7.                 <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">
  8.                         <DisableWER>1</DisableWER>
  9.                 </component>
  10.                 <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">
  11.                         <CEIPEnabled>0</CEIPEnabled>
  12.                 </component>
  13.                 <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">
  14.                         <EnableLUA>false</EnableLUA>
  15.                 </component>
  16.                 <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">
  17.                         <Home_Page>https://cn.bing.com/</Home_Page>
  18.                         <DisableFirstRunWizard>true</DisableFirstRunWizard>
  19.                 </component>
  20.         </settings>
  21.         <settings pass="oobeSystem">
  22.                 <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">
  23.                         <UninstallWindowsRE>true</UninstallWindowsRE>
  24.                 </component>
  25.                 <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">
  26.                         <DisableAntiSpyware>true</DisableAntiSpyware>
  27.                 </component>
  28.                 <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">
  29.                         <OOBE>
  30.                                 <HideEULAPage>true</HideEULAPage>
  31.                                 <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
  32.                                 <NetworkLocation>Work</NetworkLocation>
  33.                                 <ProtectYourPC>3</ProtectYourPC>
  34.                                 <SkipMachineOOBE>true</SkipMachineOOBE>
  35.                                 <SkipUserOOBE>true</SkipUserOOBE>
  36.                         </OOBE>
  37.                         <AutoLogon>
  38.                                 <Username>Administrator</Username>
  39.                                 <Enabled>true</Enabled>
  40.                                 <LogonCount>1</LogonCount>
  41.                         </AutoLogon>
  42.                         <FolderLocations>
  43.                               <ProfilesDirectory>X:\Users</ProfilesDirectory>
  44.                               <ProgramData>X:\ProgramData</ProgramData>
  45.                         </FolderLocations>
  46.                         <FirstLogonCommands>
  47.                                 <SynchronousCommand wcm:action="add">
  48.                                         <CommandLine>%SystemRoot%\Setup\Scripts\DataMove.cmd</CommandLine>
  49.                                         <Description>Migrate My Document Location</Description>
  50.                                         <Order>1</Order>
  51.                                 </SynchronousCommand>
  52.                         </FirstLogonCommands>
  53.                 </component>
  54.         </settings>
  55. </unattend>
复制代码

作者: fulibo    时间: 2022-8-31 10:57
太帅了!
支持
作者: taolibin    时间: 2022-8-31 10:59
大佬出手了,试试看
作者: cph    时间: 2022-8-31 11:00
支持
作者: 2012andyle113    时间: 2022-8-31 11:16
感谢分享,做个记号
作者: feiyang0227    时间: 2022-8-31 11:16
试一下,感谢。
作者: 旁观者清    时间: 2022-8-31 12:21
谢谢分享,
作者: liuyanjun    时间: 2022-8-31 12:47
感谢分享
作者: lcylidong    时间: 2022-8-31 12:48
感谢分享啊。
作者: 韩小锐    时间: 2022-8-31 13:39
感谢分享
作者: Yuanshen    时间: 2022-8-31 13:41
谢谢楼主。
作者: hqhlwz    时间: 2022-8-31 13:48
chishingchan 发表于 2022-8-31 10:38
没有注释:

给个最终版
作者: dxhjh    时间: 2022-8-31 14:01
感谢分享
作者: dxhjh    时间: 2022-8-31 14:01
chishingchan 发表于 2022-8-31 10:38
没有注释:

感谢分享
作者: cfq001    时间: 2022-8-31 15:20
感谢分享
作者: hilsonma    时间: 2022-8-31 19:58
最精简的无人值守应答文件是这样的:
  1. <?xml version='1.0' encoding='utf-8'?>
  2. <unattend xmlns="urn:schemas-microsoft-com:unattend">
  3.     <settings pass="oobeSystem">
  4.         <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">
  5.             <AutoLogon>
  6.                 <Enabled>true</Enabled>
  7.                 <Username>Administrator</Username>
  8.             </AutoLogon>
  9.             <OOBE>
  10.                 <SkipMachineOOBE>true</SkipMachineOOBE>
  11.             </OOBE>
  12.         </component>
  13.     </settings>
  14. </unattend>
复制代码


32位系统就将第4行中的 amd64 改为 x86
作者: chishingchan    时间: 2022-8-31 20:06
hilsonma 发表于 2022-8-31 19:58
最精简的无人值守应答文件是这样的:

精简的意思是尽可能不使用系统默认值的条目,需要优化的条目还是需要的。
这组 <AutoLogon> 微软官网说一定要配合 <LogonCount>,你这个最精简的有没有测试过?
作者: 9527sss    时间: 2022-8-31 20:39
感谢分享
作者: hilsonma    时间: 2022-8-31 20:43
本帖最后由 hilsonma 于 2022-8-31 20:58 编辑
chishingchan 发表于 2022-8-31 20:06
精简的意思是尽可能不使用系统默认值的条目,需要优化的条目还是需要的。
这组  微软官网说一定要配合  ...

我一直这样用,你也可以试一下。
我这个应该说是最简化的无人值守,不包含任何优化,只是简单达成无人值守。如需要自建帐户及添加优化项当然要添加相关语句。
官方文档也是不建议用SkipMachineOOBE,但我觉得用起来更简便,也没有发现问题。

哦,还要说一下,用法跟你的不太一样,我这是用于安装脚本/安装器的,是释放安装镜像后,将以上内容放到 \Windows\Panther\unattend.xml
虽然官网也不建议直接修改这个文件,但我也一直这样操作没有发现问题。
作者: freesoft00    时间: 2022-8-31 21:37
hilsonma 发表于 2022-8-31 19:58
最精简的无人值守应答文件是这样的:

x86和amd64可以合二为一吧,同样的条目,复制一份,然后一个是x86,一个是amd64
作者: chishingchan    时间: 2022-8-31 21:52
freesoft00 发表于 2022-8-31 21:37
x86和amd64可以合二为一吧,同样的条目,复制一份,然后一个是x86,一个是amd64

N年前试过,好像是可以的。忘记了
作者: chishingchan    时间: 2022-8-31 21:54
hilsonma 发表于 2022-8-31 20:43
我一直这样用,你也可以试一下。
我这个应该说是最简化的无人值守,不包含任何优化,只是简单达成无人值 ...

你这方法也行,但是不方便修改!
作者: nttwqz    时间: 2022-8-31 22:14
freesoft00 发表于 2022-8-31 21:37
x86和amd64可以合二为一吧,同样的条目,复制一份,然后一个是x86,一个是amd64

其实没用,现在有几台电脑还需要用到32位的Windows10,4G内存以下的电脑还是扔了吧。。。
作者: 2010techon    时间: 2022-8-31 23:57
只弄过XP和Win7的,现在是不是都11了?
作者: hilsonma    时间: 2022-9-1 00:12
freesoft00 发表于 2022-8-31 21:37
x86和amd64可以合二为一吧,同样的条目,复制一份,然后一个是x86,一个是amd64

可以的,但是越简单越好,不建议搞大全。
一般用64位的,需要32位的再单独一个32位的文件,这样更简练高效。
为什么会热衷精简系统?就是大而全的系统在方便的同时附带臃肿影响效率。
作者: fengwhen    时间: 2022-9-4 18:47
这个脚本很棒,收藏了
作者: ZMLoveLH    时间: 2022-9-15 06:08
感谢楼主老兄分享工具,我下载了
作者: 鲜桃仁    时间: 2022-9-15 21:47
这个真的很有用
作者: gigi365    时间: 2022-9-18 16:09
学习学习了!
作者: 香国妙手    时间: 2022-9-22 22:10
谢谢分享
作者: sun0516    时间: 2022-9-27 08:58
好好,好用
作者: yjkl    时间: 2022-9-27 09:25
学习了
作者: lemontea888    时间: 2022-10-17 19:40
多谢分享,收藏备用。
作者: liming3    时间: 2022-10-24 07:46
谢楼主分享了
作者: 18486933651    时间: 2022-10-24 08:21
6666666666666666
作者: wdy2008088    时间: 2022-10-24 08:28
7.10.11都行吗?
作者: chishingchan    时间: 2022-10-24 08:34
wdy2008088 发表于 2022-10-24 08:28
7.10.11都行吗?

都能通用!
作者: wdy2008088    时间: 2022-10-24 08:36
那真是太完美了,
作者: dmlt001    时间: 2022-11-1 09:20
还没试,感谢楼主提供
作者: 银狼驰骋    时间: 2022-11-3 07:58
楼的附件请问Win7-win11通用吗?
作者: 银狼驰骋    时间: 2022-11-3 07:59
请问一楼的附件,Win7-win11通用吗?
作者: 银狼驰骋    时间: 2022-11-3 08:07
大佬,一楼附件是启用系统管理员了吗?
作者: 银狼驰骋    时间: 2022-11-3 15:57
请问用安装器可以使用吗? Win7-11都通用?
就是启用系统管理员,无人值守安装  是吧?
作者: ZMLoveLH    时间: 2022-11-3 17:27
多谢楼主分享应答文件啊,下载使用了
作者: 飞黄腾达9    时间: 2022-11-11 13:32


这个真的很有用
作者: tianyayouzi8    时间: 2022-11-11 16:32
谢谢分享经验!
作者: a583091790    时间: 2022-11-14 17:50

感谢楼主大神分享
作者: 闲云ac    时间: 2022-11-15 18:01
支持
作者: 2012luomaisi    时间: 2022-11-15 18:20
支持
作者: a20120227    时间: 2022-11-15 18:31
66666666666666
作者: abcd66099    时间: 2022-11-18 09:39

谢谢分享
作者: fjice    时间: 2022-12-27 10:23

谢谢分享
作者: schloar    时间: 2022-12-27 14:56
精美的代码流程,看着很爽。
作者: 85821012    时间: 2022-12-27 23:55
主要优化了什么
作者: wowcn    时间: 2022-12-31 10:55
感谢感谢 需要这样的无人值守
作者: Hackxnet    时间: 2023-1-4 14:35
支持一下
作者: wenbieba    时间: 2023-1-7 23:36
禁用Microsoft Defender 防病毒不管用,没效果
作者: ZMLoveLH    时间: 2023-1-14 14:26
一款无人参与的应答文件脚本,多谢楼主分享啊
作者: ifonly    时间: 2023-1-14 17:03
非常感谢,备注不错
作者: Allreal    时间: 2023-1-14 21:27
看着好   谢谢
作者: 353477858    时间: 2023-1-14 23:23
赞一个
作者: dong3626    时间: 2023-2-22 21:47
好详细,,,正琢磨,,,学习了  谢谢分享
作者: 2012igniz0806    时间: 2023-2-25 13:55
牛逼,谢谢分享
作者: 时尚拼搏    时间: 2023-2-26 11:38
强啊
作者: yjkl    时间: 2023-3-2 08:03
谢谢分享
作者: 2010hook    时间: 2023-3-2 08:21
chishingchan 发表于 2022-8-31 20:06
精简的意思是尽可能不使用系统默认值的条目,需要优化的条目还是需要的。
这组  微软官网说一定要配合  ...

LogonCount 不能设为1,必须是最大值,否则自动登录一次后就要输入账号密码。
作者: chishingchan    时间: 2023-3-2 08:26
2010hook 发表于 2023-3-2 08:21
LogonCount 不能设为1,必须是最大值,否则自动登录一次后就要输入账号密码。

https://learn.microsoft.com/zh-c ... utologon-logoncount
作者: 2010hook    时间: 2023-3-2 08:33
chishingchan 发表于 2023-3-2 08:26
https://learn.microsoft.com/zh-cn/windows-hardware/customize/desktop/unattend/microsoft-windows-sh ...

我还想把这链接发给你呢,MS意思是说该值的作用是限制自动登录的次数,我以前试过发现第二次就不能自动登录了,干脆自建账户没烦恼。
作者: chishingchan    时间: 2023-3-2 08:33
2010hook 发表于 2023-3-2 08:21
LogonCount 不能设为1,必须是最大值,否则自动登录一次后就要输入账号密码。

设置为1后,从来没试过需要输入账号密码的!看 69# 的官方说明,例子的值设置为2
作者: 一缕青丝烟    时间: 2023-3-4 01:09
这个应答文件是默认启用内置超级管理员账户,并不是新建一个账户加入到超级管理员用户组中。
作者: 99207046    时间: 2023-3-13 16:56
感谢分享
作者: user114514    时间: 2023-3-13 17:20
感谢分享
作者: seeimpact153    时间: 2023-3-16 01:24

感谢分享
作者: teletell    时间: 2023-3-16 14:15
感谢分享!!
作者: 时尚拼搏    时间: 2023-3-31 22:10
谢谢分享
作者: lucky323su    时间: 2023-4-5 09:08
thank you
作者: ha2474984    时间: 2023-4-5 12:05
感谢分享
作者: fjnphn    时间: 2023-4-23 20:58
感谢分享,做个记号

作者: chshrm    时间: 2023-4-23 22:54
本帖最后由 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企业版,安装完就自动激活了。

作者: zhangjiti    时间: 2023-4-24 10:46
谢谢提供分享
作者: hanchi123    时间: 2023-4-26 09:15
感谢分享
作者: hawks    时间: 2023-4-29 14:29
感谢分享
作者: qweiwei007    时间: 2023-5-15 12:30
谢谢分享
作者: hsis872    时间: 2023-5-25 19:57
这个可以,写得很详细,学到了
作者: whatigo486    时间: 2023-5-26 20:40
学习
作者: jeep152    时间: 2023-5-31 22:05

大佬出手了,试试看
作者: 2011qt    时间: 2023-7-1 08:59
能不能跳过"你的数据将在你所在的国家或地区之外进行处理"这个界面?
作者: nongbin    时间: 2023-7-1 09:28
感谢分享
作者: szyht001    时间: 2023-12-20 22:08
学习了
作者: szyht001    时间: 2023-12-21 00:30
chishingchan 发表于 2022-8-31 10:37
亲测无效部分:

不知道大神你判定无效的原因是什么。
自测在windows7 64位下部分有效,如,systeminfo --> 注册的组织 有效。
关于Fullname 确实没看到在哪里生效了。
作者: nfans    时间: 2023-12-21 11:30
这个脚本验证起来太麻烦了,纯支持。还是正常安装再按需手动优化算了
作者: ldchenj    时间: 2023-12-22 09:18

支持
作者: vaf    时间: 2023-12-22 11:41
在哪都能用?
作者: zxb415    时间: 2024-1-9 20:28
谢谢分享
作者: 孤山飞雪    时间: 2024-1-11 14:00

大佬出手了,试试看
作者: dayeye    时间: 2024-1-13 13:54
下载了
作者: tydcl    时间: 2024-1-15 11:25

作者: axiang117    时间: 2024-1-19 13:54
正好需要用到,感谢楼主分享




欢迎光临 无忧启动论坛 (http://bbs.wuyou.net./) Powered by Discuz! X3.3