win7应答文件结构
Unattend.xml文件结构说明
基本结构:
<?xml version="1.0" encoding="utf-8"?>
<!--MX Unattend XML 1.0 Created at 2016/05/26--!>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="①">
<component name="②" processorArchitecture="③" publicKeyToken="31bf3856ad364e35" language="neutral" versionScop="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XML.Schema-instance">
④
</component>
</settings>
</unattend>
①对应阶段设置
主要使用:
windowsPE【安装PE过程,PE阶段】{A}
generalize【普通部署过程,部署阶段】{B}
sepcialize【特殊部署过程,部署阶段】{C}
oobeSystem【OOBE过程,使用阶段】{D}
次要使用:
offlineServicing【离线服务】
auditSystem【系统审核】
auditUser【用户审核】
②阶段细化设置
显示语言设置:
Microsoft-Windows-International-Core-WinPE【PE阶段】{A01}
Microsoft-Windows-International-Core【使用阶段】{D01}
PE安装设置:
Microsoft-Windows-Setup【PE阶段】{A02}
系统细节设置:
Microsoft-Windows-Shell-Setup【使用阶段】{C01}
Microsoft-Windows-Shell-Setup【部署阶段】{D02}
在线验证设置:
Microsoft-Windows-Security-Licensing-SLC-UX【部署阶段】{C02}
IE浏览设置:
Microsoft-Windows-IE-Internetexplore【部署阶段】{C03}
部署运行设置:
Microsoft-Windows-Deployment【部署阶段】{C04}
账号登录设置:
Microsoft-Windows-Shell-Setup【使用阶段】{D02}
使用运行设置:
Microsoft-Windows-Shell-Setup【使用阶段】{D02}
③系统位宽设置
x86【32位系统】
amd64【64位系统】
④具体内容设置
设置语言{A01}:
<InputLocal>zh-cn</InputLocal>【设置输入语言】
<LayerDriver>1</LayerDriver>【设置键盘布局】(除日本韩国皆选1)
<SystemLocale>zh-cn</SystemLocale>【非Unicode程序语言】
<UILanguage>zh-cn</UILanguage>【用户界面语言】
<UILanguageFallback>zh-cn</UILanguageFallback>【用户界面语言补充】
<UserLocale>zh-cn</UserLocale>【日期、时间。数字等格式】
<SetupUILanguage>
<UILanguage>zh-cn</UILanguage>【安装界面语言】
<WillShowUI>OnError</WillShowUI>【显示对话框】(OnError出错显示Never从不显示Always每次显示)
</SetupUILanguage>
设置语言{D01}:
<InputLocal>zh-cn</InputLocal>【设置输入语言】
<SystemLocale>zh-cn</SystemLocale>【非Unicode程序语言】
<UILanguage>zh-cn</UILanguage>【用户界面语言】
<UILanguageFallback>zh-cn</UILanguageFallback>【用户界面语言补充】
<UserLocale>zh-cn</UserLocale>【日期、时间。数字等格式】
PE安装设置{A02}:
<UseConfigurationSet>false</UseConfigurationSet>【使用配置集】(true使用false不使用)
<Restart>Restart</Restart>【PE安装完操作】(restart重启)
<LogPath></LogPath>【安装日志文件位置】(可不输入)
<EnableFirewall>true</EnableFirewall>【防火墙设置】(仅针对PE阶段)
<EnableNetwork>true</EnableNetwork>【网络设置】(仅针对PE阶段)
<UserData>
<AcceptEula>True</AcceptEula>【跳过用户协议】
<Organization>微软中国</Organization>【填写注册组织】
<FullName>微软用户</FullName>【填写注册用户】
<ProductKey>
<Key>KH2J9-PC326-T44D4-39H6V-TVPBY</Key>【填写激活码】(不填则安装时要求填写)
<WillShowUI>OnError</WillShowUI>【显示对话框】(OnError出错显示Never从不显示Always每次显示)
</ProductKey>
</UserData>
<DiskConfiguration>
<WillShowUI>OnError</WillShowUI>【显示对话框】(OnError出错显示Never从不显示Always每次显示)
<Disk>
<DiskID>0</DiskID>【选择硬盘编号】(0第一块硬盘1第二块硬盘)
<WillWipeDisk>False</WillWipeDisk>【是否清空硬盘】(true是false否)
<CreatePartitions>【创建分区】
<Extend>false</Extend>【是否分成拓展分区】(true拓展分区false非拓展分区)
<Order>1</Order>【分区号】(1第一分区2第二分区)
<Size>40963</Size>【空间大小】(单位MB)
<Type>Primary</Type>【分区类型】(Primary主分区Extended拓展分区EFIefi分区Logical逻辑分区MSR微软保留分区)
</CreatePartitions>
<ModifyPartitions>【更改分区】
<Active>true</Active>【是否改成活动分区】(true活动分区false非活动分区)
<Extend>false</Extend>【是否改成拓展分区】(true拓展分区false非拓展分区)
<Format>NTFS</Format>【更改文件系统】(NTFSntfs文件系统FAT32fat32文件系统)
<Label>boot</Label>【分区卷标】
<Letter>C</Letter>【分区盘符】
<Order>1</Order>【更改后分区号】
<PartitionID>1</PartitionID>【更改前分区号】
</ModifyPartitions>
</Disk>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<InstallToAvailablePartition>false</InstallToAvailablePartition>【是否安装到第一个可用分区】
<WillShowUI>OnError</WillShowUI>【显示对话框】(OnError出错显示Never从不显示Always每次显示)
<InstallTo>
<DiskID>0<DiskID>【选择硬盘编号】(0第一块硬盘1第二块硬盘)
<PartitionID>1</PartitionID>【分区号】(1第一分区2第二分区)
</InstallTo>
</OSImage>
</ImageInstall>
系统细节设置{C01}:
<BluetoothTaskbarlconEnabled>false</BluetoothTaskbarlconEnabled>【蓝牙图标是否显示在任务栏】
<ComputerName>MX</ComputerName>【计算机名设置】
<CopyeProfile>true</CopyeProfile>【是否拷贝配置文件】
<DisableAutoDaylightTimeSet>true</DisableAutoDaylightTimeSet>【是否关闭夏令时】(true关闭false开启)
<DoNotCleanTaskbar>false</DoNotCleanTaskbar>【是否隐藏闲置图标】(true隐藏false不隐藏)
<ProductKey>KH2J9-PC326-T44D4-39H6V-TVPBY</ProductKey>【填写激活码】(不填则安装时要求填写)
<RegisteredOrganization>微软中国</RegisteredOrganization>【填写注册组织】
<RegisteredOwner>微软用户</RegisteredOwner>【填写注册用户】
<ShowWindowsLive>false</ShowWindowsLive>【开机显示欢迎界面】(true显示false不显示)
<StartPanelOff>false</StartPanelOff>【是否不使用新开始菜单】(true不使用false使用)
<TimeZone>China Standard Time</TimeZone>【设置时区】
系统细节设置{D02}:
<BluetoothTaskbarlconEnabled>false</BluetoothTaskbarlconEnabled>【蓝牙图标是否显示在任务栏】
<DisableAutoDaylightTimeSet>true</DisableAutoDaylightTimeSet>【是否关闭夏令时】(true关闭false开启)
<DoNotCleanTaskbar>false</DoNotCleanTaskbar>【是否隐藏闲置图标】(true隐藏false不隐藏)
<RegisteredOrganization>微软中国</RegisteredOrganization>【填写注册组织】
<RegisteredOwner>微软用户</RegisteredOwner>【填写注册用户】
<ShowWindowsLive>false</ShowWindowsLive>【开机显示欢迎界面】(true显示false不显示)
<StartPanelOff>false</StartPanelOff>【是否不使用新开始菜单】(true不使用false使用)
<TimeZone>China Standard Time</TimeZone>【设置时区】
<OOBE>
<HideEULAPage>true</HideEULAPage>【隐藏用户协议】(true隐藏false不隐藏)
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>【隐藏无线设置】
<NetworkLocation>Work</NetworkLocation>【设置网络类型】(home家庭work工作other公共)
<ProtectYourPC>3</ProtectYourPC>【保护电脑级别】(1更新全部2重要更新3从不更新)
<SkipMachineOOBE>true</SkipMachineOOBE>【跳过机器OOBE】
<SkipUserOOBE>true</SkipUserOOBE>【跳过用户OOBE】
</OOBE>
<VisualEffects>
<FontSmoothing>ClearType</FontSmoothing>【改变字体显示圆滑效果】(standard硬件判断on强制打开off强制关闭cleartype最清楚)
</VisualEffects>
<Display>
<ColorDepath>32</ColorDepath>【屏幕色深】
<DPI>120</DPI>【点距】
<HorizontalResolution>1024</HorizontalResolution>【水平分辨率】
<RefreshRate>85</RefreshRate>【刷新频率】
<VerticalResolution>768</VerticalResolution>【垂直分辨率】
</Display>
在线验证设置{C02}:
<SkipAutoActivation>true</SkipAutoActivation>【是否跳过在线验证】(true跳过false不跳过)
IE浏览设置{C03}:
<AllowedSites>false</AllowedSites>【允许弹出窗口站点】
<Home_Page>http://www.baidu.com</Home_Page>【设置主页】
<ShowMenuBar>true</ShowMenuBar>【显示菜单栏】
<ShowStatusBar>true</ShowStatusBar>【显示状态栏】
<ShowInformationBar>true</ShowInformationBar>【显示信息栏】
<StartPages>
<StartPage>
<StartPageUrl>http://www.baidu.com</StartPageUrl>【开始页网站】
</StartPage>
</StartPages>
部署运行设置{C04}:
<RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Description></Description>【说明项目】(可不输入)
<Order>1</Order>【顺序号】
<Path>C:\A.BAT</Path>【运行文件完整路径】
</RunSynchronousCommand>
</RunSynchronous>
账号登录设置{D02}:
<AutoLogon>
<Domain></Domain>【登录区域】(可不输入)
<Enable>true</Enable>【打开自动登录机制】(true打开false不打开)
<LogonCount>1</LogonCount>【登录账户使用次数】(1从1开始)
<Username>Administrator</Username>【登录管理员用户名】(只能由英文组成)
<Password>
<Value />【设置密码】(为空则自动登录)
</Password>
</AutoLogon>
<UserAccounts>
<AdministratorPassword>
<Value />【设置密码】(为空则自动登录)
</AdministratorPassword>
<LocalAccounts>
<LocalAccount>
<Description></Description>【说明项目】(可不输入)
<DisplayName></DisplayName>【说明项目】(可不输入)
<Group>Administrator</Group>【用户所属组】
<Name>Administrator</Name>【登录用户名】
</LocalAccount>
</LocalAccounts>
</UserAccounts>
使用运行设置{D02}:
<FirstLogonCommands>【首次登录运行】
<SynchronousCommand wcm:action="add">
<CommandLine>C:\A.BAT</CommandLine>【运行文件完整路径】
<Description></Description>【说明项目】(可不输入)
<Order>1</Order>【顺序号】
<RequiresUserInput>false</RequiresUserInput>【是否要求用户输入】
</SynchronousCommand>
</FirstLogonCommands>
<LogonCommands>【首次桌面运行】
<AsynchronousCommand wcm:action="add">
<CommandLine>C:\A.BAT</CommandLine>【运行文件完整路径】
<Description></Description>【说明项目】(可不输入)
<Order>1</Order>【顺序号】
<RequiresUserInput>false</RequiresUserInput>【是否要求用户输入】
</AsynchronousCommand>
</LogonCommands> 我来坐沙发!! 我做板凳。小白纯来学习。
页:
[1]