150 lines
7.3 KiB
XML
150 lines
7.3 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<unattend xmlns="urn:schemas-microsoft-com:unattend">
|
||
|
<servicing/>
|
||
|
<settings pass="windowsPE">
|
||
|
<component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
|
||
|
<DiskConfiguration>
|
||
|
<Disk wcm:action="add">
|
||
|
<CreatePartitions>
|
||
|
<CreatePartition wcm:action="add">
|
||
|
<Order>1</Order>
|
||
|
<Type>Primary</Type>
|
||
|
<Extend>true</Extend>
|
||
|
</CreatePartition>
|
||
|
</CreatePartitions>
|
||
|
<ModifyPartitions>
|
||
|
<ModifyPartition wcm:action="add">
|
||
|
<Extend>false</Extend>
|
||
|
<Format>NTFS</Format>
|
||
|
<Letter>C</Letter>
|
||
|
<Order>1</Order>
|
||
|
<PartitionID>1</PartitionID>
|
||
|
<Label>SystemDrive</Label>
|
||
|
</ModifyPartition>
|
||
|
</ModifyPartitions>
|
||
|
<DiskID>0</DiskID>
|
||
|
<WillWipeDisk>true</WillWipeDisk>
|
||
|
</Disk>
|
||
|
<WillShowUI>OnError</WillShowUI>
|
||
|
</DiskConfiguration>
|
||
|
<UserData>
|
||
|
<AcceptEula>true</AcceptEula>
|
||
|
<!--
|
||
|
NOTE: If you are re-configuring this for use of a retail key
|
||
|
and using a retail ISO, you need to adjust the <ProductKey> block
|
||
|
below to look like this:
|
||
|
|
||
|
<ProductKey>
|
||
|
<Key>33PXH-7Y6KF-2VJC9-XBBR8-HVTHH</Key>
|
||
|
<WillShowUI>Never</WillShowUI>
|
||
|
</ProductKey>
|
||
|
|
||
|
Notice the addition of the `<Key>` element.
|
||
|
-->
|
||
|
|
||
|
<!-- Product Key from http://technet.microsoft.com/en-us/library/jj612867.aspx -->
|
||
|
<ProductKey>
|
||
|
MHF9N-XY6XB-WVXMC-BTDCT-MKKG7
|
||
|
<WillShowUI>Never</WillShowUI>
|
||
|
</ProductKey>
|
||
|
</UserData>
|
||
|
<ImageInstall>
|
||
|
<OSImage>
|
||
|
<InstallTo>
|
||
|
<DiskID>0</DiskID>
|
||
|
<PartitionID>1</PartitionID>
|
||
|
</InstallTo>
|
||
|
<WillShowUI>OnError</WillShowUI>
|
||
|
<InstallToAvailablePartition>false</InstallToAvailablePartition>
|
||
|
<InstallFrom>
|
||
|
<MetaData wcm:action="add">
|
||
|
<Key>/IMAGE/NAME</Key>
|
||
|
<Value>Windows 8.1 Enterprise Evaluation</Value>
|
||
|
</MetaData>
|
||
|
</InstallFrom>
|
||
|
</OSImage>
|
||
|
</ImageInstall>
|
||
|
</component>
|
||
|
<component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
|
||
|
<SetupUILanguage>
|
||
|
<UILanguage>en-US</UILanguage>
|
||
|
</SetupUILanguage>
|
||
|
<InputLocale>en-US</InputLocale>
|
||
|
<SystemLocale>en-US</SystemLocale>
|
||
|
<UILanguage>en-US</UILanguage>
|
||
|
<UILanguageFallback>en-US</UILanguageFallback>
|
||
|
<UserLocale>en-US</UserLocale>
|
||
|
</component>
|
||
|
</settings>
|
||
|
<settings pass="oobeSystem">
|
||
|
<component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
|
||
|
<UserAccounts>
|
||
|
<AdministratorPassword>
|
||
|
<Value>V@grant123</Value>
|
||
|
<PlainText>true</PlainText>
|
||
|
</AdministratorPassword>
|
||
|
<LocalAccounts>
|
||
|
<LocalAccount wcm:action="add">
|
||
|
<Password>
|
||
|
<Value>V@grant123</Value>
|
||
|
<PlainText>true</PlainText>
|
||
|
</Password>
|
||
|
<Description>Vagrant User</Description>
|
||
|
<DisplayName>vagrant</DisplayName>
|
||
|
<Group>administrators</Group>
|
||
|
<Name>vagrant</Name>
|
||
|
</LocalAccount>
|
||
|
</LocalAccounts>
|
||
|
</UserAccounts>
|
||
|
<OOBE>
|
||
|
<HideEULAPage>true</HideEULAPage>
|
||
|
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
|
||
|
<NetworkLocation>Home</NetworkLocation>
|
||
|
<ProtectYourPC>1</ProtectYourPC>
|
||
|
</OOBE>
|
||
|
<AutoLogon>
|
||
|
<Password>
|
||
|
<Value>V@grant123</Value>
|
||
|
<PlainText>true</PlainText>
|
||
|
</Password>
|
||
|
<Username>vagrant</Username>
|
||
|
<Enabled>true</Enabled>
|
||
|
</AutoLogon>
|
||
|
<FirstLogonCommands>
|
||
|
|
||
|
<SynchronousCommand wcm:action="add">
|
||
|
<CommandLine>cmd.exe /c powershell -ExecutionPolicy Unrestricted -Command "Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force"</CommandLine>
|
||
|
<Description>Set Execution Policy</Description>
|
||
|
<Order>1</Order>
|
||
|
<RequiresUserInput>true</RequiresUserInput>
|
||
|
</SynchronousCommand>
|
||
|
|
||
|
<SynchronousCommand wcm:action="add">
|
||
|
<!-- This task MUST include enabling winrm for Packer to be able to continue -->
|
||
|
<CommandLine>powershell.exe -File A:\autounattend-postinstall.ps1 -SkipWindowsUpdates</CommandLine>
|
||
|
<Description>Run Postinstall Script</Description>
|
||
|
<Order>99</Order>
|
||
|
<RequiresUserInput>true</RequiresUserInput>
|
||
|
</SynchronousCommand>
|
||
|
|
||
|
</FirstLogonCommands>
|
||
|
<ShowWindowsLive>false</ShowWindowsLive>
|
||
|
</component>
|
||
|
</settings>
|
||
|
<settings pass="specialize">
|
||
|
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
|
||
|
<OEMInformation>
|
||
|
<HelpCustomized>false</HelpCustomized>
|
||
|
</OEMInformation>
|
||
|
<!-- Rename computer here. -->
|
||
|
<ComputerName>vagrant-81-x86</ComputerName>
|
||
|
<TimeZone>Central Standard Time</TimeZone>
|
||
|
<RegisteredOwner/>
|
||
|
</component>
|
||
|
<component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
|
||
|
<SkipAutoActivation>true</SkipAutoActivation>
|
||
|
</component>
|
||
|
</settings>
|
||
|
<cpi:offlineImage xmlns:cpi="urn:schemas-microsoft-com:cpi" cpi:source="catalog:d:/sources/install_windows 7 ENTERPRISE.clg"/>
|
||
|
</unattend>
|