|
本帖最后由 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
- <?xml version="1.0" encoding="utf-8"?>
- <!--https://docs.microsoft.com/zh-cn/windows-hardware/customize/desktop/unattend/-->
- <unattend xmlns="urn:schemas-microsoft-com:unattend">
- <settings pass="windowsPE">
- <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">
- <UserData>
- <!--指定是否自动接受 Microsoft 软件许可条款。默认值=false:否|true:是-->
- <AcceptEula>true</AcceptEula>
- <!--指定最终用户的名称。长度最大为 63 个字符的字符串-->
- <FullName>Windows</FullName>
- <!--指定拥有计算机的组织的名称。长度最大为 63 个字符的字符串-->
- <Organization>Microsoft</Organization>
- </UserData>
- </component>
- </settings>
- <settings pass="specialize">
- <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">
- <!--启用或禁用系统还原。默认值=0:启用|1:禁用-->
- <DisableSR>1</DisableSR>
- </component>
- <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">
- <!--禁用 Windows 错误报告。默认值=0:启用|1:禁用-->
- <DisableWER>1</DisableWER>
- </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">
- <!--指示是否启用了 Windows 客户体验改善计划 (CEIP)。默认值=1:是|0:否-->
- <CEIPEnabled>0</CEIPEnabled>
- </component>
- <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">
- <!--指定 Windows 用户帐户控制 (UAC) 是否在程序尝试更改计算机时通知用户。默认值=true:是|false:否-->
- <EnableLUA>false</EnableLUA>
- </component>
- <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">
- <!--为用户启动 Internet Explorer 时显示的默认主页-->
- <Home_Page>https://cn.bing.com/</Home_Page>
- <!--指定用户首次运行 Windows Internet Explorer 时是否跳过首次运行向导。默认值=false:否|true:是-->
- <DisableFirstRunWizard>true</DisableFirstRunWizard>
- </component>
- <!--
- <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">
- <RunSynchronous>
- <RunSynchronousCommand wcm:action="add">
- <Description>迁移“我的文档”的位置</Description>
- <Order>1</Order>
- <Path>reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /f /v "CMD" /t REG_SZ /d "%SystemRoot%\Setup\Scripts\DataMove.cmd"</Path>
- </RunSynchronousCommand>
- </RunSynchronous>
- </component>
- -->
- </settings>
- <settings pass="oobeSystem">
- <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">
- <!--指定是否在系统中安装或删除 Windows 恢复环境。默认值=false:安装|true:删除-->
- <UninstallWindowsRE>true</UninstallWindowsRE>
- </component>
- <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">
- <!--指定是否禁用 Microsoft Defender 防病毒。默认值=false:否|true:是-->
- <DisableAntiSpyware>true</DisableAntiSpyware>
- </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">
- <OOBE>
- <!--指定是否隐藏“欢迎使用 Windows”的 Microsoft 软件许可条款页面。默认值=false:否|true:是-->
- <HideEULAPage>true</HideEULAPage>
- <!--指定是否隐藏在欢迎 Windows 期间显示的“加入无线网络”屏幕。默认值=false:否|true:是-->
- <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
- <!--指定在用户首次登录时,计算机连接到网络时的网络位置。家庭网络:Home|工作网络:Work|禁用网络发现:Other-->
- <NetworkLocation>Work</NetworkLocation>
- <!--指定“快速”设置是否。1=2:打开|3:关闭-->
- <ProtectYourPC>3</ProtectYourPC>
- </OOBE>
- <!--指定用于自动登录到计算机的帐户-->
- <AutoLogon>
- <!--指定用于自动登录的用户帐户名。-->
- <Username>Administrator</Username>
- <!--指定是否启用自动登录过程。-->
- <Enabled>true</Enabled>
- <!--指定可以登录到计算机的次数。-->
- <LogonCount>1</LogonCount>
- </AutoLogon>
- <!--指定用户配置文件文件夹的路径。-->
- <FolderLocations>
- <ProfilesDirectory>X:\Users</ProfilesDirectory>
- <ProgramData>X:\ProgramData</ProgramData>
- </FolderLocations>
- <!--指定要在用户首次登录到计算机时运行的命令。-->
- <FirstLogonCommands>
- <SynchronousCommand wcm:action="add">
- <CommandLine>%SystemRoot%\Setup\Scripts\DataMove.cmd</CommandLine>
- <Description>Migrate My Document Location</Description>
- <Order>1</Order>
- </SynchronousCommand>
- </FirstLogonCommands>
- </component>
- </settings>
- </unattend>
复制代码
注意:附件格式所限,请将后缀 .txt 删除!
unattend.xml.txt
(3.49 KB, 下载次数: 374)
|
评分
-
查看全部评分
|