Unattend.xml应答文件制作(WISM)
将制作好的应答文件unattend.xml拷贝到模板机sysprep目录下,然后在cmd下运行 (unattend.xml文件可自定义名称)
sysprep /generalize /oobe /shutdown /unattend:Unattend.xml
应答文件设置项说明:
4.specialize
amd64_Microsoft-Windows-Security-SPP-UX_neutral:Skip AutoActivation:true 跳过自动激活
amd64_Microsoft-Windows-Shell-Setup_neutral:CpmputerName,TimeZone:设置计算机名(*表示自动命名),时区
注:ComputerName要生效必须注意如下配置:
1)如果设置 SkipmachineOOBE为true,则要对 windowsPE/amd64_Microsoft-Windows-Setup_neutral/UserData 进行设置
2)如果设置 SkipmachineOOBE为false,则设置其上面的 HideEULAPage设置等,不需要再设置windowsPE/amd64_Microsoft-Windows-Setup_neutral/UserData
amd64_Microsoft-Windows-UnattendedJoin_neutral/Identification:JoinWorkgroup 设置工作组OK,加域单独设置此处还未生效
7.oobeSystem
amd64_Microsoft-Windows-International-Core_neutral:设置语言
“zh-CN”,繁体中文为“zh-HK”,英文为“en-US”
InputLocale用于设置输入语言,此处用“en-US”;
LayerDriver为键盘的种类,除了日文和韩文,应该为“1”;
SystemLocale用于设置运行非Unicode程序时系统的默认语言;
UILanguage用于设置用户界面的语言;
UILanguageFallback表示当UILanguage选用小地区时,若程序没有该种语言,则跳到UILanguageFallback;
UserLocale指地区选项,包括日期、时间、数字等格式。
设置用户自动登录;设置管理员密码(下面两项都需要设置,AutoLogon的Administrator密码和AdministratorPassword的密码都要设置相同)
测试结果:如果只设置了
AutoLogon,则跳出“更改密码”界面;如果AutoLogon的Administrator密码为
空,AdministratorPassword项未启用,则跳出“更改密码”界面;如果不设置如果AutoLogon的Administrator密码
为空,AdministratorPassword设置了相应密码,则提示密码错误。
amd64_Microsoft-Windows-Shell-Setup_neutral/AutoLogon/Password
amd64_Microsoft-Windows-Shell-Setup_neutral/UserAccounts/AdministratorPassword

添加登陆后执行脚本(bat或ps1均可,需要管理员权限):
amd64_Microsoft-Windows-Shell-Setup_neutral/FirstLogonCommands 新建 AsynchronousCommand
注:FirstLogonCommands
下的脚本只在第一次登录时运行;还有一点是如果第一次运行PowerShell脚本的话,会不成功,因为默认情况下是禁止PowerShell脚本运行
的,所以第一次只能先运行批处理(Powershell.exe Set-ExecutionPolicy unrestricted
-force),然后再调用PowerShell脚本
直接运行PowerShell脚本,CommandLine格式如下:
%WINDIR%\System32\WindowsPowerShell\v1.0\PowerShell.exe c:\m.ps1
amd64_Microsoft-Windows-Shell-Setup_neutral/LogonCommands 新建 AsynchronousCommand
注:LogonCommands下的命令会在每次登陆时都运行一次

amd64_Microsoft-Windows-Shell-Setup_neutral/OOBE:跳过
MachineOOBE,即跳过Windows欢迎界面(user-account creation, language, and
time-zone settings will not be configured)
HideEULAPage:true 隐藏协议许可界面
HideWirelessSetupInOOBE:true 跳过无线网络设置
NetworkLocation:work 网络类型
ProtectYourPC:1自动获取所有补丁 2获取重要补丁 3不自动升级
SkipMachineOOBE:True(注:因为设置了 SkipMachineOOBE为True,所以上面4项不需要再设置)

===============================================================================
第一次自动登录-设置管理员密码-时区-语言-执行一次PowerShell脚本-计算机名称(已测)
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<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>
<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.w3.org/2001/XMLSchema-instance">
<AutoLogon>
<Password>
<PlainText>false</PlainText>
<Value>YgBvAGMALgAxADIAMwBQAGEAcwBzAHcAbwByAGQA</Value>
</Password>
<Enabled>true</Enabled>
<LogonCount>1</LogonCount>
<Username>administrator</Username>
</AutoLogon>
<OOBE>
<SkipMachineOOBE>true</SkipMachineOOBE>
</OOBE>
<UserAccounts>
<AdministratorPassword>
<Value>YgBvAGMALgAxADIAMwBBAGQAbQBpAG4AaQBzAHQAcgBhAHQAbwByAFAAYQBzAHMAdwBvAHIAZAA=</Value>
<PlainText>false</PlainText>
</AdministratorPassword>
</UserAccounts>
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<CommandLine>%WINDIR%\System32\WindowsPowerShell\v1.0\PowerShell.exe c:\m.ps1</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>
</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>PCname1</ComputerName>
<TimeZone>China Standard Time</TimeZone>
</component>
</settings>
<cpi:offlineImage
cpi:source="catalog:e:/isotest/win2008r2_en_windows server 2008 r2
serverenterprise.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
=========================================================================
以下未测试:
windowsPE:Microsoft-Windows-International-Core-WinPE 设置PE阶段的语言类型
windowsPE:Microsoft-Windows-Setup 此处设置的fullname(用户名),organization(组织)只在PE阶段有效
windowsPE:Microsoft-Windows-Setup imageinstall:osimage:安装到可用分区,默认false,安装时自行选择
specialize: Microsoft-Windows-IE-InternetExplorer IE设置
OOBE:Microsoft-Windows-Shell-Setup/UserAccounts/ LocalAccounts 新建用户
配置用户默认配置(其他所有登陆到该计算机的用户都使用该配置文件):
在 4specialize阶段:Microsoft-windows-Shell-Setup | copyProfile 设置为true,在封装的时候会将当前用户的默认配置文件复制到默认用户的配置文件
跳过重置激活期限(slmgr /dlv):
在 4specialize阶段:Microsoft-windows-Security-SPP_neutral |SkipRearm :1
编辑注册表:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\SkipRearm将其从0设置为1
注:
You must make sure that the <SkipRearm> setting is removed
from the final unattended file that is used to deploy computers in a
production environment. If <SkipRearm> is not removed from the
unattended file that is used to deploy computers in a production
environment, the KMS current client count does not increase for new clients that are added to the network.
The Windows Software Licensing Rearm program restores the Windows
system to the original licensing state. All licensing and registry data
related to activation is either removed or reset. Also, any grace period
timers are reset.
From:http://support.microsoft.com/kb/929828
Unattend.xml应答文件制作(WISM)的更多相关文章
- Unattend.xml应答文件制作(WISM)-- 转自爱做梦的鱼
将制作好的应答文件unattend.xml拷贝到模板机sysprep目录下,然后在cmd下运行(unattend.xml文件可自定义名称) sysprep /generalize /oobe /s ...
- Windows 7 SP1无人值守自动应答文件制作
使用U盘安装Windows系统时,很多人都会使用UltraISO工具来制作U盘启动盘,然后插入到电脑中加以安装.系统的安装过程中,需要一步一步手动选择或者输入配置,Windows是支持无人值守自动应答 ...
- scvmm应答文件 无人值守安装系统
我们可以通过这种windows配置文件实现winpe.光盘等无人职守安装配置操作系统,在scvmm虚拟化平台中这种文件叫做应答文件. 下面为一个windows server 2008 r2的一个完整应 ...
- -05 08:57 ARCGIS地统计学计算文件后缀名为.shp文件制作
2011-07-05 08:57 ARCGIS地统计学计算文件后缀名为.shp文件制作 ARCAMP软件要进行地统计计算的文件后格式后缀名必须为.shp的文件,网上介绍的方法复杂难懂,那么制作.shp ...
- 创建Windows10无人值守(自动应答文件)教程
一.准备工作 系统要求: Windows10 1809版本 工具下载: 镜像:Windows10,任何一个版本都可以,我使用的是1909版本 ed2k://|file|cn_windows_10_bu ...
- Tomcat下conf下server.xml的文件配置信息
Tomcat下conf下server.xml的文件配置信息,基本上不用做任何修改就可以使用,修改的地方就是host区域的一些配置,此文件设置端口为80. 注意:Tomcat配置文件中(即server. ...
- Radmin Server-3.5 完美绿色破解版(x32 x64通用) 第三版 + 单文件制作方法
Radmin Server v3.5 汉化破解绿色版(x32 x64通用) 第三版 下载链接: https://pan.baidu.com/s/1qYVcSQo 2016年7月8日更新第三版1.修复在 ...
- Android反编译(二)之反编译XML资源文件
Android反编译(二) 之反编译XML资源文件 [目录] 1.工具 2.反编译步骤 3.重新编译APK 4.实例 5.装X技巧 6.学习总结 1.工具 1).反编译工具 apktool http ...
- Android Animation学习(三) ApiDemos解析:XML动画文件的使用
Android Animation学习(三) ApiDemos解析:XML动画文件的使用 可以用XML文件来定义Animation. 文件必须有一个唯一的根节点: <set>, <o ...
随机推荐
- img图片下面出现莫名的下边距解决办法
图片底部的空隙实际上涉及行内元素的布局模型,图片默认的垂直对齐方式是基线,而基线的位置是与字体相关的.所以在某些时候,图片底部的空隙可能是 2px,而有时可能是 4px 或更多.不同的 font-si ...
- 使用Crowd2.7集成Confluence5.3与JIRA6.1,并安装、破解及汉化,实现单点登录【原创】
鉴于目前没有针对Crowd.Confluence.Jira安装.集成和破解最新的方法,总结今天安装.破解及集成的经验,编写此文,方便大家进行配置也方便自己以后参考.此文参考多篇破解文章,并经过作者 ...
- 一张关于docker版本的图
今天安装了windows内测版的docker,的确是是把vitualbox换成了hyper-v,如左图,server的os 还是linux.不过之前在nanoserver上装的docker 也的确是原 ...
- React Native 打包.jsx文件
最近在研究React Native.感觉开发效率确实不错,但jsx语法写起来感觉不怎么顺手. 试用了Sublime Text 3和Visual Studio Code写代码,感觉反应总是慢一拍. 还是 ...
- UnitTesting中的ClassInitialize,ClassCleanup,TestInitialize,TestClearup
ClassInitialize 标识一个包含代码的方法,这些代码必须在测试类中的任意测试运行之前使用,并用于分配测试类所使用的资源.此类不能被继承. http://msdn.microsoft.com ...
- 初学者的python学习笔记2
本来想是先把作业二搞定的,结果发现作业二用的字典,一脸懵逼,还是先搞定第二课吧.其实第二课和第一课内容差不多,据说是第一课的老师去美国了……不管怎么样先整理一下吧. ----------------- ...
- 关于JavaScript和html的随笔
最近听了一些关于JavaScript和html的讲课和读了一些书籍.因为我是给项目做网站知道的,所以要特别的注意和努力.JavaScript是一门挺好用的脚本语言,比较简单灵活,在这上面我深有体会,因 ...
- 浅谈 Struts2 面试题收藏
Struts2面试题 一.工作原理 一个请求在Struts2框架中的处理大概分为以下几个步骤 1 客户端初始化一个指向Servlet容器(例如Tomcat)的请求 2 这个请求经过一系列的过滤器(Fi ...
- C#生成图片缩略图(2种思路)
前言:在日常图片浏览中,如果图片过多,只有一张张的打开图片才能知道图片的内容,显然这样浏览起来非常不便.Windows系统在浏览图片时提供了缩略图的功能,这样大大的方便了浏览者了解每张图片的内容,本实 ...
- Mac下手动安装Chromedriver.exe
Mac OS X Yosemite 10.10.4下,ChromeDriver运行异常,需要手动安装chromedriver.exe Step 1: 打开https://sites.google.co ...