|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<unattend xmlns="urn:schemas-microsoft-com:unattend"> |
| 3 | + <settings pass="windowsPE"> |
| 4 | + <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"> |
| 5 | + <SetupUILanguage> |
| 6 | + <UILanguage>en-US</UILanguage> |
| 7 | + </SetupUILanguage> |
| 8 | + <InputLocale>en-US</InputLocale> |
| 9 | + <SystemLocale>en-US</SystemLocale> |
| 10 | + <UILanguage>en-US</UILanguage> |
| 11 | + <UserLocale>en-US</UserLocale> |
| 12 | + </component> |
| 13 | + <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"> |
| 14 | + <DiskConfiguration> |
| 15 | + <Disk wcm:action="add"> |
| 16 | + <CreatePartitions> |
| 17 | + <!-- System partition --> |
| 18 | + <CreatePartition wcm:action="add"> |
| 19 | + <Order>1</Order> |
| 20 | + <Size>350</Size> |
| 21 | + <Type>Primary</Type> |
| 22 | + </CreatePartition> |
| 23 | + <!-- Windows partition --> |
| 24 | + <CreatePartition wcm:action="add"> |
| 25 | + <Order>2</Order> |
| 26 | + <Extend>true</Extend> |
| 27 | + <Type>Primary</Type> |
| 28 | + </CreatePartition> |
| 29 | + </CreatePartitions> |
| 30 | + <ModifyPartitions> |
| 31 | + <ModifyPartition wcm:action="add"> |
| 32 | + <Order>1</Order> |
| 33 | + <PartitionID>1</PartitionID> |
| 34 | + <Label>System</Label> |
| 35 | + <Format>NTFS</Format> |
| 36 | + <Active>true</Active> |
| 37 | + </ModifyPartition> |
| 38 | + <ModifyPartition wcm:action="add"> |
| 39 | + <Order>2</Order> |
| 40 | + <PartitionID>2</PartitionID> |
| 41 | + <Format>NTFS</Format> |
| 42 | + <Label>Windows</Label> |
| 43 | + </ModifyPartition> |
| 44 | + </ModifyPartitions> |
| 45 | + <DiskID>0</DiskID> |
| 46 | + <WillWipeDisk>true</WillWipeDisk> |
| 47 | + </Disk> |
| 48 | + <WillShowUI>OnError</WillShowUI> |
| 49 | + </DiskConfiguration> |
| 50 | + <ImageInstall> |
| 51 | + <OSImage wcm:action="add"> |
| 52 | + <InstallTo> |
| 53 | + <DiskID>0</DiskID> |
| 54 | + <PartitionID>2</PartitionID> |
| 55 | + </InstallTo> |
| 56 | + <InstallFrom> |
| 57 | + <MetaData wcm:action="add"> |
| 58 | + <Value>Windows Server 2012 R2 SERVERSTANDARD</Value> |
| 59 | + <Key>/IMAGE/NAME</Key> |
| 60 | + </MetaData> |
| 61 | + </InstallFrom> |
| 62 | + <InstallToAvailablePartition>false</InstallToAvailablePartition> |
| 63 | + </OSImage> |
| 64 | + </ImageInstall> |
| 65 | + <UserData> |
| 66 | + <ProductKey> |
| 67 | + <WillShowUI>OnError</WillShowUI> |
| 68 | + <Key>PNCRQ-TYDVC-QC8X9-Y24Q3-3PC2B</Key> |
| 69 | + </ProductKey> |
| 70 | + <AcceptEula>true</AcceptEula> |
| 71 | + </UserData> |
| 72 | + </component> |
| 73 | + </settings> |
| 74 | + <settings pass="specialize"> |
| 75 | + <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"> |
| 76 | + <ComputerName>TESTDC</ComputerName> |
| 77 | + <RegisteredOwner>Adam Bertram</RegisteredOwner> |
| 78 | + <AutoLogon> |
| 79 | + <Password> |
| 80 | + <Value>cABAACQAJAB3ADAAcgBkADEAMgBQAGEAcwBzAHcAbwByAGQA</Value> |
| 81 | + <PlainText>false</PlainText> |
| 82 | + </Password> |
| 83 | + <Enabled>true</Enabled> |
| 84 | + <Username>Administrator</Username> |
| 85 | + </AutoLogon> |
| 86 | + </component> |
| 87 | + <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"> |
| 88 | + <RunSynchronous> |
| 89 | + <RunSynchronousCommand wcm:action="add"> |
| 90 | + <Order>2</Order> |
| 91 | + <Path>cmd /c net user administrator /active:yes</Path> |
| 92 | + <Description>enable administrator</Description> |
| 93 | + </RunSynchronousCommand> |
| 94 | + <RunSynchronousCommand wcm:action="add"> |
| 95 | + <Order>3</Order> |
| 96 | + <Description>Set NIC IP and DNS</Description> |
| 97 | + <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> |
| 98 | + </RunSynchronousCommand> |
| 99 | + <RunSynchronousCommand wcm:action="add"> |
| 100 | + <Order>4</Order> |
| 101 | + <Description>Disable Firewall</Description> |
| 102 | + <Path>NetSh Advfirewall set allprofiles state off</Path> |
| 103 | + </RunSynchronousCommand> |
| 104 | + <RunSynchronousCommand wcm:action="add"> |
| 105 | + <Path>cmd /c reg add "HKLM\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell" /v ExecutionPolicy /t REG_SZ /d Unrestricted /f</Path> |
| 106 | + <Description>Configure Powershell security settings</Description> |
| 107 | + <Order>1</Order> |
| 108 | + </RunSynchronousCommand> |
| 109 | + </RunSynchronous> |
| 110 | + </component> |
| 111 | + </settings> |
| 112 | + <settings pass="oobeSystem"> |
| 113 | + <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"> |
| 114 | + <UserAccounts> |
| 115 | + <AdministratorPassword> |
| 116 | + <Value>cABAACQAJAB3ADAAcgBkADEAMgBBAGQAbQBpAG4AaQBzAHQAcgBhAHQAbwByAFAAYQBzAHMAdwBvAHIAZAA=</Value> |
| 117 | + <PlainText>false</PlainText> |
| 118 | + </AdministratorPassword> |
| 119 | + </UserAccounts> |
| 120 | + <AutoLogon> |
| 121 | + <Password> |
| 122 | + <Value>cABAACQAJAB3ADAAcgBkADEAMgBQAGEAcwBzAHcAbwByAGQA</Value> |
| 123 | + <PlainText>false</PlainText> |
| 124 | + </Password> |
| 125 | + <Enabled>true</Enabled> |
| 126 | + <Username>administrator</Username> |
| 127 | + </AutoLogon> |
| 128 | + </component> |
| 129 | + </settings> |
| 130 | + <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" /> |
| 131 | +</unattend> |
0 commit comments