-
-
Save awsvpc/528e7070d9c19a08f9a2172e108d3fd5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>en-US</UILanguage> | |
</SetupUILanguage> | |
<InputLocale>en-US</InputLocale> | |
<SystemLocale>en-US</SystemLocale> | |
<UILanguage>en-US</UILanguage> | |
<UserLocale>en-US</UserLocale> | |
</component> | |
<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> | |
<Disk wcm:action="add"> | |
<CreatePartitions> | |
<!-- System partition --> | |
<CreatePartition wcm:action="add"> | |
<Order>1</Order> | |
<Size>350</Size> | |
<Type>Primary</Type> | |
</CreatePartition> | |
<!-- Windows partition --> | |
<CreatePartition wcm:action="add"> | |
<Order>2</Order> | |
<Extend>true</Extend> | |
<Type>Primary</Type> | |
</CreatePartition> | |
</CreatePartitions> | |
<ModifyPartitions> | |
<ModifyPartition wcm:action="add"> | |
<Order>1</Order> | |
<PartitionID>1</PartitionID> | |
<Label>System</Label> | |
<Format>NTFS</Format> | |
<Active>true</Active> | |
</ModifyPartition> | |
<ModifyPartition wcm:action="add"> | |
<Order>2</Order> | |
<PartitionID>2</PartitionID> | |
<Format>NTFS</Format> | |
<Label>Windows</Label> | |
</ModifyPartition> | |
</ModifyPartitions> | |
<DiskID>0</DiskID> | |
<WillWipeDisk>true</WillWipeDisk> | |
</Disk> | |
<WillShowUI>OnError</WillShowUI> | |
</DiskConfiguration> | |
<ImageInstall> | |
<OSImage wcm:action="add"> | |
<InstallTo> | |
<DiskID>0</DiskID> | |
<PartitionID>2</PartitionID> | |
</InstallTo> | |
<InstallFrom> | |
<MetaData wcm:action="add"> | |
<Value>Windows Server 2012 R2 SERVERSTANDARD</Value> | |
<Key>/IMAGE/NAME</Key> | |
</MetaData> | |
</InstallFrom> | |
<InstallToAvailablePartition>false</InstallToAvailablePartition> | |
</OSImage> | |
</ImageInstall> | |
<UserData> | |
<ProductKey> | |
<WillShowUI>OnError</WillShowUI> | |
<Key>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</Key> | |
</ProductKey> | |
<AcceptEula>true</AcceptEula> | |
</UserData> | |
</component> | |
</settings> | |
<settings pass="specialize"> | |
<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"> | |
<ComputerName>TESTDC</ComputerName> | |
<RegisteredOwner>Adam Bertram</RegisteredOwner> | |
<AutoLogon> | |
<Password> | |
<Value>dfdfdfdfdfdfdff</Value> | |
<PlainText>false</PlainText> | |
</Password> | |
<Enabled>true</Enabled> | |
<Username>Administrator</Username> | |
</AutoLogon> | |
</component> | |
<component name="Microsoft-Windows-Deployment" 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"> | |
<RunSynchronous> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>2</Order> | |
<Path>cmd /c net user administrator /active:yes</Path> | |
<Description>enable administrator</Description> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>3</Order> | |
<Description>Set NIC IP and DNS</Description> | |
<Path>powershell -NoProfile -Command "$i=(Get-NetAdapter).ifIndex;New-NetIPAddress -IPAddress '192.168.0.156' -PrefixLength 24 -InterfaceIndex $i;Set-DnsClientServerAddress -InterfaceIndex $i -ServerAddresses '192.168.0.156'"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>4</Order> | |
<Description>Disable Firewall</Description> | |
<Path>NetSh Advfirewall set allprofiles state off</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Path>cmd /c reg add "HKLM\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell" /v ExecutionPolicy /t REG_SZ /d Unrestricted /f</Path> | |
<Description>Configure Powershell security settings</Description> | |
<Order>1</Order> | |
</RunSynchronousCommand> | |
</RunSynchronous> | |
</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>dfdfdfffdfd</Value> | |
<PlainText>false</PlainText> | |
</AdministratorPassword> | |
</UserAccounts> | |
<AutoLogon> | |
<Password> | |
<Value>dfdfdfdfd</Value> | |
<PlainText>false</PlainText> | |
</Password> | |
<Enabled>true</Enabled> | |
<Username>administrator</Username> | |
</AutoLogon> | |
</component> | |
</settings> | |
<cpi:offlineImage cpi:source="wim:c:/en_windows_server_2012_r2_with_update_x64_dvd_4065220/sources/install.wim#Windows Server 2012 R2 SERVERSTANDARD" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> | |
</unattend> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
test