An AutoUnattend file that quickly builds a Windows 2012r2 server with the password Cangetinwin1
<?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"> | |
<InputLocale>en-US</InputLocale> | |
<SystemLocale>en-US</SystemLocale> | |
<UILanguage>en-US</UILanguage> | |
<UILanguageFallback>en-US</UILanguageFallback> | |
<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> | |
<CreatePartition wcm:action="add"> | |
<Size>350</Size> | |
<Type>Primary</Type> | |
<Order>1</Order> | |
</CreatePartition> | |
<CreatePartition wcm:action="add"> | |
<Order>2</Order> | |
<Extend>true</Extend> | |
<Type>Primary</Type> | |
</CreatePartition> | |
</CreatePartitions> | |
<ModifyPartitions> | |
<ModifyPartition wcm:action="add"> | |
<Active>true</Active> | |
<Format>NTFS</Format> | |
<Label>boot</Label> | |
<Order>1</Order> | |
<PartitionID>1</PartitionID> | |
</ModifyPartition> | |
<ModifyPartition wcm:action="add"> | |
<Order>2</Order> | |
<PartitionID>2</PartitionID> | |
<Label>System</Label> | |
<Format>NTFS</Format> | |
</ModifyPartition> | |
</ModifyPartitions> | |
<DiskID>0</DiskID> | |
<WillWipeDisk>true</WillWipeDisk> | |
</Disk> | |
</DiskConfiguration> | |
<ImageInstall> | |
<OSImage> | |
<InstallFrom> | |
<MetaData wcm:action="add"> | |
<Value>Windows Server 2012 R2 SERVERDATACENTER</Value> | |
<Key>/IMAGE/NAME</Key> | |
</MetaData> | |
</InstallFrom> | |
<InstallTo> | |
<DiskID>0</DiskID> | |
<PartitionID>2</PartitionID> | |
</InstallTo> | |
<WillShowUI>OnError</WillShowUI> | |
<InstallToAvailablePartition>false</InstallToAvailablePartition> | |
</OSImage> | |
</ImageInstall> | |
<UserData> | |
<ProductKey> | |
<WillShowUI>OnError</WillShowUI> | |
</ProductKey> | |
<AcceptEula>true</AcceptEula> | |
<FullName>ForgeRock</FullName> | |
<Organization>ForgeRock</Organization> | |
</UserData> | |
<EnableFirewall>false</EnableFirewall> | |
</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>svr1</ComputerName> | |
<RegisteredOrganization>ForgeRock</RegisteredOrganization> | |
<RegisteredOwner>ForgeRock</RegisteredOwner> | |
<TimeZone>UTC</TimeZone> | |
</component> | |
<component name="Microsoft-Windows-IE-ESC" 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"> | |
<IEHardenAdmin>false</IEHardenAdmin> | |
<IEHardenUser>false</IEHardenUser> | |
</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>QwBhAG4AZwBlAHQAaQBuAHcAaQBuADEAQQBkAG0AaQBuAGkAcwB0AHIAYQB0AG8AcgBQAGEAcwBzAHcAbwByAGQA</Value> | |
<PlainText>false</PlainText> | |
</AdministratorPassword> | |
</UserAccounts> | |
<RegisteredOrganization>ForgeRock</RegisteredOrganization> | |
<RegisteredOwner>ForgeRock</RegisteredOwner> | |
</component> | |
</settings> | |
<cpi:offlineImage cpi:source="wim:c:/images/install.wim#Windows Server 2012 R2 SERVERDATACENTER" 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