这个脚本都是通过windows microsoft aik 生成的 以下仅供参考 请根据实际情况来修改
将该xml 复制到安装盘 或者U盘 之后安装操作及系统 即可无人值守安装windows2008r2
注意,该文件会格式化你原有的东西重新分区 一定小心
第一个分区为C盘 50G 剩下的不分区 需要手动分区
<?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.w3.org/2001/XMLSchema-instance">
<!-- 语言选项 -->
<SetupUILanguage>
<UILanguage>zh-cn</UILanguage>
</SetupUILanguage>
<InputLocale>zh-cn</InputLocale>
<SystemLocale>zh-cn</SystemLocale>
<UILanguage>zh-cn</UILanguage>
<UILanguageFallback></UILanguageFallback>
<UserLocale>zh-cn</UserLocale>
</component>
<!-- 64位 -->
<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.w3.org/2001/XMLSchema-instance">
<!-- 磁盘分区相关的选项 注意备份数据. 这个会清理所有的磁盘信息 -->
<DiskConfiguration>
<WillShowUI>OnError</WillShowUI>
<Disk wcm:action="add">
<CreatePartitions>
<CreatePartition wcm:action="add">
<Order>1</Order>
<Size>51200</Size>
<Type>Primary</Type>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Active>true</Active>
<Extend>false</Extend>
<Format>NTFS</Format>
<Letter>C</Letter>
<Order>1</Order>
<PartitionID>1</PartitionID>
</ModifyPartition>
</ModifyPartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
</DiskConfiguration>
<!-- 操作系统版本 和 安装到那个分区 -->
<ImageInstall>
<OSImage>
<InstallFrom>
<MetaData wcm:action="add">
<Key>/image/name</Key>
<Value>Windows Server 2008 R2 SERVERENTERPRISE</Value>
</MetaData>
</InstallFrom>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>1</PartitionID>
</InstallTo>
<WillShowUI>OnError</WillShowUI>
</OSImage>
</ImageInstall>
<!-- 序列号和计算机名 -->
<UserData>
<ProductKey>
<WillShowUI>OnError</WillShowUI>
<Key>7P8GH-FV2FF-8FDCR-YK49D-D7P97</Key>
</ProductKey>
<AcceptEula>true</AcceptEula>
<FullName>Computer Name</FullName>
</UserData>
</component>
</settings>
<settings pass="oobeSystem">
<!—administrator 密码 加密的 具体请使用 AIK查询 -->
<!—administrator 时区设置 -->
<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">
<UserAccounts>
<AdministratorPassword>
<Value>aAB4AGEAZwBlACaaaAyADMAQQBkAG0AaQBabckAcwB0AHIAYQB0AG8AcgBQAGEAcwBzAHcAbwByAGQA</Value>
<PlainText>false</PlainText>
</AdministratorPassword>
</UserAccounts>
<TimeZone>China Standard Time</TimeZone>
</component>
</settings>
<cpi:offlineImage cpi:source="catalog:e:/iso/windows2008/install_windows server 2008 r2 serverenterprise.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
<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.w3.org/2001/XMLSchema-instance">
<!-- 语言选项 -->
<SetupUILanguage>
<UILanguage>zh-cn</UILanguage>
</SetupUILanguage>
<InputLocale>zh-cn</InputLocale>
<SystemLocale>zh-cn</SystemLocale>
<UILanguage>zh-cn</UILanguage>
<UILanguageFallback></UILanguageFallback>
<UserLocale>zh-cn</UserLocale>
</component>
<!-- 64位 -->
<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.w3.org/2001/XMLSchema-instance">
<!-- 磁盘分区相关的选项 注意备份数据. 这个会清理所有的磁盘信息 -->
<DiskConfiguration>
<WillShowUI>OnError</WillShowUI>
<Disk wcm:action="add">
<CreatePartitions>
<CreatePartition wcm:action="add">
<Order>1</Order>
<Size>51200</Size>
<Type>Primary</Type>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Active>true</Active>
<Extend>false</Extend>
<Format>NTFS</Format>
<Letter>C</Letter>
<Order>1</Order>
<PartitionID>1</PartitionID>
</ModifyPartition>
</ModifyPartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
</DiskConfiguration>
<!-- 操作系统版本 和 安装到那个分区 -->
<ImageInstall>
<OSImage>
<InstallFrom>
<MetaData wcm:action="add">
<Key>/image/name</Key>
<Value>Windows Server 2008 R2 SERVERENTERPRISE</Value>
</MetaData>
</InstallFrom>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>1</PartitionID>
</InstallTo>
<WillShowUI>OnError</WillShowUI>
</OSImage>
</ImageInstall>
<!-- 序列号和计算机名 -->
<UserData>
<ProductKey>
<WillShowUI>OnError</WillShowUI>
<Key>7P8GH-FV2FF-8FDCR-YK49D-D7P97</Key>
</ProductKey>
<AcceptEula>true</AcceptEula>
<FullName>Computer Name</FullName>
</UserData>
</component>
</settings>
<settings pass="oobeSystem">
<!—administrator 密码 加密的 具体请使用 AIK查询 -->
<!—administrator 时区设置 -->
<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">
<UserAccounts>
<AdministratorPassword>
<Value>aAB4AGEAZwBlACaaaAyADMAQQBkAG0AaQBabckAcwB0AHIAYQB0AG8AcgBQAGEAcwBzAHcAbwByAGQA</Value>
<PlainText>false</PlainText>
</AdministratorPassword>
</UserAccounts>
<TimeZone>China Standard Time</TimeZone>
</component>
</settings>
<cpi:offlineImage cpi:source="catalog:e:/iso/windows2008/install_windows server 2008 r2 serverenterprise.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
- 本文固定链接: http://www.sa-log.com/201.html
- 转载请注明: 王, 帅 于 我的系统记录 发表