分享

安装原版Windows10系统应用应答文件跳过设置配置页面

 gfergfer 2023-11-17 发布于辽宁
安装原版Windows10系统,或者新笔记本电脑开机进系统,必定会有如下图所示的开机配置设置页面,需要手动设置,对于技术员来说,每次手动设置太过于麻烦,当然,微软提供了方法,预应答文件,又称无人值守文件,这便是本文所说的方法。

应答文件(或无人参与文件)可用于在安装期间修改你的映像中的 Windows 设置。 你还可以在映像中创建触发脚本的设置,在用户首次创建帐户并选择其默认语言后运行这些脚本。Windows 安装程序将会自动搜索某些位置的应答文件,或者,你可以在运行 Windows 安装程序 (setup.exe) 时通过使用 /unattend: 选项来指定无人参与文件。Windows 设置概述 尽管你可以在审核模式中设置很多 Windows 设置,但是某些设置只能使用应答文件或 Windows 配置设计器来设置,如添加制造商的支持信息。

https://learn.microsoft.com/zh-CN/windows-hardware/manufacture/desktop/update-windows-settings-and-scripts-create-your-own-answer-file-sxs?view=windows-11

图片

图片

图片

图片

图片

图片

图片

图片

图片

废话不多说,直接上文件代码:

<?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./2001/XMLSchema-instance'> <SetupUILanguage> <UILanguage>zh-CN</UILanguage> </SetupUILanguage> <InputLocale>zh-CN</InputLocale> <LayeredDriver>1</LayeredDriver> <SystemLocale>zh-CN</SystemLocale> <UILanguage>zh-CN</UILanguage> <UILanguageFallback>zh-CN</UILanguageFallback> <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./2001/XMLSchema-instance'> <DynamicUpdate> <Enable>false</Enable> <WillShowUI>OnError</WillShowUI> </DynamicUpdate> <UserData> <ProductKey> <WillShowUI>OnError</WillShowUI> </ProductKey> </UserData> <EnableFirewall>true</EnableFirewall> <EnableNetwork>true</EnableNetwork> <Restart>Restart</Restart> <UseConfigurationSet>true</UseConfigurationSet> </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./2001/XMLSchema-instance'> <SkipAutoActivation>true</SkipAutoActivation> </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./2001/XMLSchema-instance'> <InputLocale>zh-CN</InputLocale> <SystemLocale>zh-CN</SystemLocale> <UILanguage>zh-CN</UILanguage> <UILanguageFallback>zh-CN</UILanguageFallback> <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./2001/XMLSchema-instance'> <AutoLogon> <Password> <Value>UABhAHMAcwB3AG8AcgBkAA==</Value> <PlainText>false</PlainText> </Password> <Enabled>true</Enabled> <LogonCount>1</LogonCount> <Username>Administrator</Username> </AutoLogon> <OOBE> <HideEULAPage>true</HideEULAPage> <HideLocalAccountScreen>true</HideLocalAccountScreen> <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen> <HideOnlineAccountScreens>true</HideOnlineAccountScreens> <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE> <ProtectYourPC>3</ProtectYourPC> <UnattendEnableRetailDemo>false</UnattendEnableRetailDemo> </OOBE> <UserAccounts> <AdministratorPassword> <Value>QQBkAG0AaQBuAGkAcwB0AHIAYQB0AG8AcgBQAGEAcwBzAHcAbwByAGQA</Value> <PlainText>false</PlainText> </AdministratorPassword> </UserAccounts> <BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled> <DisableAutoDaylightTimeSet>true</DisableAutoDaylightTimeSet> <DoNotCleanTaskBar>true</DoNotCleanTaskBar> <RegisteredOrganization>JX</RegisteredOrganization> <RegisteredOwner>Administrator</RegisteredOwner> <TimeZone>China Standard Time</TimeZone> </component> </settings> <cpi:offlineImage cpi:source='wim:e:/windows_10_1909/sources/install.wim#Windows 10 Pro' xmlns:cpi='urn:schemas-microsoft-com:cpi' /></unattend>

将代码保存为:Autounattend.xml,存放到U盘。

用WinNTSetup安装系统时,再选到Autonattend.xml文件即可

图片

当然了,系统还原后,Autounattend.xml重命名为unattend.xml并手动放到系统盘的Windows\Panther文件夹下也一样有用
如果想封装系统,对于自动配置脚本部分,也可以参考链接:https://learn.microsoft.com/zh-CN/windows-hardware/manufacture/desktop/update-windows-settings-and-scripts-create-your-own-answer-file-sxs?view=windows-11

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多