2021-06-23 07:30:15 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<unattend xmlns="urn:schemas-microsoft-com:unattend">
|
|
|
|
<servicing/>
|
|
|
|
<settings pass="windowsPE">
|
2021-06-23 10:53:34 +00:00
|
|
|
<component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-PnpCustomizationsWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
|
|
|
|
<DriverPaths>
|
|
|
|
<PathAndCredentials wcm:action="add" wcm:keyValue="1">
|
|
|
|
<Path>E:\Program Files\VMware\VMware Tools\Drivers\pvscsi\Win8\amd64</Path>
|
|
|
|
</PathAndCredentials>
|
|
|
|
</DriverPaths>
|
|
|
|
</component>
|
2021-06-23 07:30:15 +00:00
|
|
|
<component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
|
|
|
|
<DiskConfiguration>
|
|
|
|
<Disk wcm:action="add">
|
2021-06-23 10:53:34 +00:00
|
|
|
<DiskID>0</DiskID>
|
|
|
|
<WillWipeDisk>true</WillWipeDisk>
|
2021-06-23 07:30:15 +00:00
|
|
|
<CreatePartitions>
|
2021-06-23 10:53:34 +00:00
|
|
|
<!-- Windows RE Tools partition -->
|
2021-06-23 07:30:15 +00:00
|
|
|
<CreatePartition wcm:action="add">
|
|
|
|
<Order>1</Order>
|
|
|
|
<Type>Primary</Type>
|
2021-06-23 10:53:34 +00:00
|
|
|
<Size>300</Size>
|
|
|
|
</CreatePartition>
|
|
|
|
<!-- System partition (ESP) -->
|
|
|
|
<CreatePartition wcm:action="add">
|
|
|
|
<Order>2</Order>
|
|
|
|
<Type>EFI</Type>
|
|
|
|
<Size>100</Size>
|
|
|
|
</CreatePartition>
|
|
|
|
<!-- Microsoft reserved partition (MSR) -->
|
|
|
|
<CreatePartition wcm:action="add">
|
|
|
|
<Order>3</Order>
|
|
|
|
<Type>MSR</Type>
|
|
|
|
<Size>128</Size>
|
|
|
|
</CreatePartition>
|
|
|
|
<!-- Windows partition -->
|
|
|
|
<CreatePartition wcm:action="add">
|
|
|
|
<Order>4</Order>
|
|
|
|
<Type>Primary</Type>
|
2021-06-23 07:30:15 +00:00
|
|
|
<Extend>true</Extend>
|
|
|
|
</CreatePartition>
|
|
|
|
</CreatePartitions>
|
|
|
|
<ModifyPartitions>
|
2021-06-23 10:53:34 +00:00
|
|
|
<!-- Windows RE Tools partition -->
|
2021-06-23 07:30:15 +00:00
|
|
|
<ModifyPartition wcm:action="add">
|
|
|
|
<Order>1</Order>
|
|
|
|
<PartitionID>1</PartitionID>
|
2021-06-23 10:53:34 +00:00
|
|
|
<Label>WINRE</Label>
|
|
|
|
<Format>NTFS</Format>
|
|
|
|
<TypeID>DE94BBA4-06D1-4D40-A16A-BFD50179D6AC</TypeID>
|
|
|
|
</ModifyPartition>
|
|
|
|
<!-- System partition (ESP) -->
|
|
|
|
<ModifyPartition wcm:action="add">
|
|
|
|
<Order>2</Order>
|
|
|
|
<PartitionID>2</PartitionID>
|
|
|
|
<Label>System</Label>
|
|
|
|
<Format>FAT32</Format>
|
|
|
|
</ModifyPartition>
|
|
|
|
<!-- MSR partition does not need to be modified -->
|
|
|
|
<ModifyPartition wcm:action="add">
|
|
|
|
<Order>3</Order>
|
|
|
|
<PartitionID>3</PartitionID>
|
|
|
|
</ModifyPartition>
|
|
|
|
<!-- Windows partition -->
|
|
|
|
<ModifyPartition wcm:action="add">
|
|
|
|
<Order>4</Order>
|
|
|
|
<PartitionID>4</PartitionID>
|
|
|
|
<Label>OS</Label>
|
|
|
|
<Letter>C</Letter>
|
|
|
|
<Format>NTFS</Format>
|
2021-06-23 07:30:15 +00:00
|
|
|
</ModifyPartition>
|
|
|
|
</ModifyPartitions>
|
|
|
|
</Disk>
|
|
|
|
</DiskConfiguration>
|
|
|
|
<UserData>
|
|
|
|
<AcceptEula>true</AcceptEula>
|
|
|
|
<!-- <FullName>Spamasaurus Rex</FullName>
|
|
|
|
<Organization>Spamasaurus Rex</Organization> -->
|
|
|
|
<ProductKey>
|
|
|
|
<Key><<img-productkey>></Key>
|
|
|
|
<WillShowUI>Never</WillShowUI>
|
|
|
|
</ProductKey>
|
|
|
|
</UserData>
|
|
|
|
<ImageInstall>
|
|
|
|
<OSImage>
|
|
|
|
<InstallTo>
|
|
|
|
<DiskID>0</DiskID>
|
2021-06-23 10:53:34 +00:00
|
|
|
<PartitionID>4</PartitionID>
|
2021-06-23 07:30:15 +00:00
|
|
|
</InstallTo>
|
|
|
|
<WillShowUI>OnError</WillShowUI>
|
|
|
|
<InstallToAvailablePartition>false</InstallToAvailablePartition>
|
|
|
|
<InstallFrom>
|
|
|
|
<MetaData wcm:action="add">
|
|
|
|
<Key>/IMAGE/INDEX</Key>
|
|
|
|
<Value>4</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="amd64" 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>
|
2021-06-23 07:44:11 +00:00
|
|
|
</settings>
|
|
|
|
<settings pass="offlineServicing">
|
|
|
|
<component name="Microsoft-Windows-LUA-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
|
|
|
|
<EnableLUA>false</EnableLUA>
|
|
|
|
</component>
|
2021-06-23 07:30:15 +00:00
|
|
|
</settings>
|
|
|
|
<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>en-US</InputLocale>
|
|
|
|
<SystemLocale>en-US</SystemLocale>
|
|
|
|
<UILanguage>en-US</UILanguage>
|
|
|
|
<UserLocale>en-US</UserLocale>
|
|
|
|
</component>
|
|
|
|
<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="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
|
|
|
|
<UserAccounts>
|
|
|
|
<AdministratorPassword>
|
|
|
|
<Value><<img-password>></Value>
|
|
|
|
<PlainText>true</PlainText>
|
|
|
|
</AdministratorPassword>
|
|
|
|
</UserAccounts>
|
|
|
|
<OOBE>
|
|
|
|
<HideEULAPage>true</HideEULAPage>
|
|
|
|
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
|
|
|
|
<NetworkLocation>Home</NetworkLocation>
|
|
|
|
<ProtectYourPC>1</ProtectYourPC>
|
|
|
|
</OOBE>
|
|
|
|
<AutoLogon>
|
|
|
|
<Password>
|
|
|
|
<Value><<img-password>></Value>
|
|
|
|
<PlainText>true</PlainText>
|
|
|
|
</Password>
|
|
|
|
<Username>administrator</Username>
|
|
|
|
<Enabled>true</Enabled>
|
|
|
|
</AutoLogon>
|
|
|
|
<FirstLogonCommands>
|
|
|
|
<SynchronousCommand wcm:action="add">
|
|
|
|
<CommandLine>cmd.exe /c powershell -Command "Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force"</CommandLine>
|
|
|
|
<Description>Set execution policy 64bit</Description>
|
|
|
|
<Order>1</Order>
|
|
|
|
<RequiresUserInput>true</RequiresUserInput>
|
|
|
|
</SynchronousCommand>
|
|
|
|
<SynchronousCommand wcm:action="add">
|
|
|
|
<CommandLine>C:\Windows\SysWOW64\cmd.exe /c powershell -Command "Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force"</CommandLine>
|
|
|
|
<Description>Set execution policy 32bit</Description>
|
|
|
|
<Order>2</Order>
|
|
|
|
<RequiresUserInput>true</RequiresUserInput>
|
|
|
|
</SynchronousCommand>
|
|
|
|
<SynchronousCommand wcm:action="add">
|
|
|
|
<CommandLine>cmd.exe /c reg add "HKLM\System\CurrentControlSet\Control\Network\NewNetworkWindowOff"</CommandLine>
|
|
|
|
<Description>Disable new network prompt</Description>
|
|
|
|
<Order>3</Order>
|
|
|
|
<RequiresUserInput>true</RequiresUserInput>
|
|
|
|
</SynchronousCommand>
|
|
|
|
<SynchronousCommand wcm:action="add">
|
|
|
|
<CommandLine>cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File a:\Set-NetworkProfile.ps1</CommandLine>
|
|
|
|
<Description>Set network profile to private</Description>
|
|
|
|
<Order>4</Order>
|
|
|
|
<RequiresUserInput>true</RequiresUserInput>
|
|
|
|
</SynchronousCommand>
|
|
|
|
<SynchronousCommand wcm:action="add">
|
|
|
|
<CommandLine>cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File a:\Disable-WinRM.ps1</CommandLine>
|
|
|
|
<Description>Disable WinRM</Description>
|
|
|
|
<Order>5</Order>
|
|
|
|
<RequiresUserInput>true</RequiresUserInput>
|
|
|
|
</SynchronousCommand>
|
|
|
|
<SynchronousCommand wcm:action="add">
|
|
|
|
<CommandLine>cmd.exe /c a:\Install-VMwareTools.cmd</CommandLine>
|
|
|
|
<Order>13</Order>
|
|
|
|
<Description>Install VMware Tools</Description>
|
|
|
|
</SynchronousCommand>
|
|
|
|
<SynchronousCommand wcm:action="add">
|
|
|
|
<CommandLine>cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File a:\Enable-WinRM.ps1</CommandLine>
|
|
|
|
<Description>Enable WinRM</Description>
|
|
|
|
<Order>99</Order>
|
|
|
|
</SynchronousCommand>
|
|
|
|
</FirstLogonCommands>
|
|
|
|
<ShowWindowsLive>false</ShowWindowsLive>
|
|
|
|
</component>
|
|
|
|
</settings>
|
|
|
|
<settings pass="specialize">
|
|
|
|
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
|
|
|
|
<OEMInformation>
|
|
|
|
<HelpCustomized>false</HelpCustomized>
|
|
|
|
</OEMInformation>
|
|
|
|
<!-- Rename computer here. -->
|
|
|
|
<ComputerName>packer-template</ComputerName>
|
|
|
|
<TimeZone>W. Europe 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="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
|
|
|
|
<SkipAutoActivation>true</SkipAutoActivation>
|
|
|
|
</component>
|
|
|
|
</settings>
|
|
|
|
</unattend>
|