码迷,mamicode.com
首页 > Windows程序 > 详细

Windows 无人值守自动答应

时间:2017-11-20 20:15:36      阅读:495      评论:0      收藏:0      [点我收藏+]

标签:ide   computer   protect   accounts   lang   user   文件夹   orm   rman   

步骤

  1. 使用windows自带dism或其他映像(wim)工具将install.wim释放到C盘。
  2. 自动答应文件

    <?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>
  3. 将答应文件保存为Unattend.xml。
  4. 新建文件夹“C:\Windows\Panther”,将Unattend.xml复制到该文件夹。
  5. 重启后将跳过欢迎界面(第一次进入系统需要填写用户名和设置的界面)。

说明

许可条款: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

Windows 无人值守自动答应

标签:ide   computer   protect   accounts   lang   user   文件夹   orm   rman   

原文地址:http://www.cnblogs.com/Dumby/p/7867736.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!