使用windows自带dism或其他映像(wim)工具将install.wim释放到C盘。
自动承诺文件
<?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="oobeSystem"> <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> <HideEULAPage>true</HideEULAPage> <NetworkLocation>Other</NetworkLocation> <SkipUserOOBE>true</SkipUserOOBE> <SkipMachineOOBE>true</SkipMachineOOBE> <ProtectYourPC>3</ProtectYourPC> </OOBE> <UserAccounts> <LocalAccounts> <LocalAccount wcm:action="add"> <Password> <Value>1234</Value> <PlainText>true</PlainText> </Password> <Name>Test</Name> <Group>Administrators,Performance Log Users</Group> </LocalAccount> </LocalAccounts> </UserAccounts> </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-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"> <ComputerName>Home-PC</ComputerName> <TimeZone>China Standard Time</TimeZone> </component> </settings> </unattend>
将承诺文件生存为Unattend.xml。
新建文件夹“C:\Windows\Panther”,将Unattend.xml复制到该文件夹。
重启后将跳过欢迎界面(第一次进入系统需要填写用户名和设置的界面)。
说明许可条款:Microsoft-Windows-Shell-Setup/OOBE/HideEULAPage
网络类型:Microsoft-Windows-Shell-Setup/OOBE/NetworkLocation
更新设置:Microsoft-Windows-Shell-Setup/OOBE/ProtectYourPC
* 1 – 保举
* 2 – 仅安置更新
* 3 – 启用无掩护
计算机名称:Microsoft-Windows-Shell-Setup/ComputerName
时区:Microsoft-Windows-Shell-Setup/TimeZone
用户名:Microsoft-Windows-Shell-Setup/UserAccounts/LocalAccounts/LocalAccount/Name
用户地址组:Microsoft-Windows-Shell-Setup/UserAccounts/LocalAccounts/LocalAccount/Group
暗码使用明文:Microsoft-Windows-Shell-Setup/UserAccounts/LocalAccounts/LocalAccount/Password/PlainText
暗码:Microsoft-Windows-Shell-Setup/UserAccounts/LocalAccounts/LocalAccount/Password/Value
https://msdn.microsoft.com/zh-cn/library/cc749195(v=ws.10).aspx
,