Xml文件  |  189行  |  6.94 KB

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
	<settings pass="windowsPE">
		<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>20000</Size>
							<Type>Primary</Type>
						</CreatePartition>
					</CreatePartitions>
					<ModifyPartitions>
						<ModifyPartition wcm:action="add">
							<Active>true</Active>
							<Extend>false</Extend>
							<Format>NTFS</Format>
							<Label>OS_Install</Label>
							<Letter>C</Letter>
							<Order>1</Order>
							<PartitionID>1</PartitionID>
						</ModifyPartition>
					</ModifyPartitions>
					<DiskID>0</DiskID>
					<WillWipeDisk>true</WillWipeDisk>
				</Disk>
			</DiskConfiguration>
			<ImageInstall>
				<OSImage>
					<InstallTo>
						<DiskID>0</DiskID>
						<PartitionID>1</PartitionID>
					</InstallTo>
					<WillShowUI>OnError</WillShowUI>
				</OSImage>
			</ImageInstall>
			<UserData>
				<ProductKey>
					<WillShowUI>OnError</WillShowUI>
					<Key>KVM_TEST_CDKEY</Key>
				</ProductKey>
				<AcceptEula>true</AcceptEula>
			</UserData>
		</component>
		<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>en-us</UILanguage>
			</SetupUILanguage>
			<InputLocale>0409:00000409</InputLocale>
			<SystemLocale>en-us</SystemLocale>
			<UILanguage>en-us</UILanguage>
			<UserLocale>en-us</UserLocale>
			<UILanguageFallback>en-us</UILanguageFallback>
		</component>
		<component name="Microsoft-Windows-PnpCustomizationsWinPE"
			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">
			<DriverPaths>
				<PathAndCredentials wcm:keyValue="1" wcm:action="add">
					<Path>KVM_TEST_STORAGE_DRIVER_PATH</Path>
				</PathAndCredentials>
				<PathAndCredentials wcm:keyValue="2" wcm:action="add">
					<Path>KVM_TEST_NETWORK_DRIVER_PATH</Path>
				</PathAndCredentials>
			</DriverPaths>
		</component>
	</settings>
	<settings pass="specialize">
		<component name="Microsoft-Windows-Deployment"
			processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
			language="neutral" versionScope="nonSxS"
			xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<RunSynchronous>
				<RunSynchronousCommand wcm:action="add">
					<Description>EnableAdmin</Description>
					<Order>1</Order>
					<Path>cmd /c net user Administrator /active:yes</Path>
				</RunSynchronousCommand>
				<RunSynchronousCommand wcm:action="add">
					<Description>UnfilterAdministratorToken</Description>
					<Order>2</Order>
					<Path>cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v FilterAdministratorToken /t REG_DWORD /d 0 /f</Path>
				</RunSynchronousCommand>
			</RunSynchronous>
		</component>
		<component name="Microsoft-Windows-International-Core"
			processorArchitecture="x86" 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>0409:00000409</InputLocale>
			<SystemLocale>en-US</SystemLocale>
			<UILanguage>en-US</UILanguage>
			<UserLocale>en-US</UserLocale>
		</component>
	</settings>
	<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">
			<UserAccounts>
				<AdministratorPassword>
					<Value>1q2w3eP</Value>
					<PlainText>true</PlainText>
				</AdministratorPassword>
			</UserAccounts>
			<AutoLogon>
				<Enabled>true</Enabled>
				<LogonCount>1000</LogonCount>
				<Username>Administrator</Username>
				<Password>
					<Value>1q2w3eP</Value>
					<PlainText>true</PlainText>
				</Password>
			</AutoLogon>
			<OOBE>
				<HideEULAPage>true</HideEULAPage>
				<NetworkLocation>Work</NetworkLocation>
				<ProtectYourPC>1</ProtectYourPC>
				<SkipUserOOBE>true</SkipUserOOBE>
				<SkipMachineOOBE>true</SkipMachineOOBE>
			</OOBE>
			<FirstLogonCommands>
				<SynchronousCommand wcm:action="add">
					<CommandLine>%WINDIR%\System32\cmd /c KVM_TEST_VIRTIO_NETWORK_INSTALLER"</CommandLine>
					<Order>1</Order>
				</SynchronousCommand>
				<SynchronousCommand wcm:action="add">
					<CommandLine>%WINDIR%\System32\cmd /c start /w pkgmgr /iu:"TelnetServer"</CommandLine>
					<Order>2</Order>
				</SynchronousCommand>
				<SynchronousCommand wcm:action="add">
					<CommandLine>%WINDIR%\System32\cmd /c sc config TlntSvr start= auto</CommandLine>
					<Order>3</Order>
				</SynchronousCommand>
				<SynchronousCommand wcm:action="add">
					<CommandLine>%WINDIR%\System32\cmd /c netsh firewall set opmode disable</CommandLine>
					<Order>4</Order>
				</SynchronousCommand>
				<SynchronousCommand wcm:action="add">
					<CommandLine>%WINDIR%\System32\cmd /c net start telnet</CommandLine>
					<Order>5</Order>
				</SynchronousCommand>
				<SynchronousCommand wcm:action="add">
					<CommandLine>%WINDIR%\System32\cmd /c E:\setuprss.bat</CommandLine>
					<Order>6</Order>
				</SynchronousCommand>
				<SynchronousCommand wcm:action="add">
					<CommandLine>%WINDIR%\System32\cmd /c netsh interface ip set address "Local Area Connection" dhcp</CommandLine>
					<Order>7</Order>
				</SynchronousCommand>
				<SynchronousCommand wcm:action="add">
					<CommandLine>%WINDIR%\System32\cmd /c A:\finish.exe</CommandLine>
					<Order>8</Order>
				</SynchronousCommand>
			</FirstLogonCommands>
		</component>
		<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>0409:00000409</InputLocale>
			<SystemLocale>en-us</SystemLocale>
			<UILanguage>en-us</UILanguage>
			<UILanguageFallback>en-us</UILanguageFallback>
			<UserLocale>en-us</UserLocale>
		</component>
	</settings>
	<cpi:offlineImage
		cpi:source="wim:d:/os/vista/x64/sources/install.wim#Windows Vista ENTERPRISE"
		xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>