Created
February 18, 2018 09:07
-
-
Save HauptJ/f0c2c14f866aa7777ea626efed567aaa to your computer and use it in GitHub Desktop.
Autounattend.xml - Windows 10 EDU
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"> | |
<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="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> | |
<DiskConfiguration> | |
<Disk wcm:action="add"> | |
<CreatePartitions> | |
<CreatePartition wcm:action="add"> | |
<Order>1</Order> | |
<Size>300</Size> | |
<Type>Primary</Type> | |
</CreatePartition> | |
<CreatePartition wcm:action="add"> | |
<Order>2</Order> | |
<Size>100</Size> | |
<Type>EFI</Type> | |
</CreatePartition> | |
<CreatePartition wcm:action="add"> | |
<Order>3</Order> | |
<Size>128</Size> | |
<Type>MSR</Type> | |
</CreatePartition> | |
<CreatePartition wcm:action="add"> | |
<Order>4</Order> | |
<Type>Primary</Type> | |
<Extend>true</Extend> | |
</CreatePartition> | |
</CreatePartitions> | |
<ModifyPartitions> | |
<ModifyPartition wcm:action="add"> | |
<Format>NTFS</Format> | |
<Label>WINRE</Label> | |
<Order>1</Order> | |
<PartitionID>1</PartitionID> | |
</ModifyPartition> | |
<ModifyPartition wcm:action="add"> | |
<Format>FAT32</Format> | |
<Label>System</Label> | |
<Order>2</Order> | |
<PartitionID>2</PartitionID> | |
</ModifyPartition> | |
<ModifyPartition wcm:action="add"> | |
<PartitionID>3</PartitionID> | |
<Order>3</Order> | |
</ModifyPartition> | |
<ModifyPartition wcm:action="add"> | |
<Format>NTFS</Format> | |
<Label>Windows</Label> | |
<Letter>C</Letter> | |
<Order>4</Order> | |
<PartitionID>4</PartitionID> | |
</ModifyPartition> | |
</ModifyPartitions> | |
<DiskID>0</DiskID> | |
<WillWipeDisk>true</WillWipeDisk> | |
</Disk> | |
<WillShowUI>OnError</WillShowUI> | |
</DiskConfiguration> | |
<UserData> | |
<AcceptEula>true</AcceptEula> | |
<FullName>Joshua Haupt</FullName> | |
<Organization>Josh</Organization> | |
<!-- | |
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> | |
<Key>*****-*****-*****-*****-*****</Key> | |
<WillShowUI>Never</WillShowUI> | |
</ProductKey> | |
</UserData> | |
<ImageInstall> | |
<OSImage> | |
<InstallTo> | |
<DiskID>0</DiskID> | |
<PartitionID>4</PartitionID> | |
</InstallTo> | |
<WillShowUI>OnError</WillShowUI> | |
<InstallToAvailablePartition>false</InstallToAvailablePartition> | |
<InstallFrom> | |
<MetaData wcm:action="add"> | |
<Key>/IMAGE/NAME</Key> | |
<Value>Windows 10 Education</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> | |
</settings> | |
<settings pass="offlineServicing"> | |
<component name="Microsoft-Windows-LUA-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> | |
<EnableLUA>false</EnableLUA> | |
</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="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> | |
<UserAccounts> | |
<AdministratorPassword> | |
<Value>Secret!</Value> | |
<PlainText>true</PlainText> | |
</AdministratorPassword> | |
<LocalAccounts> | |
<LocalAccount wcm:action="add"> | |
<Password> | |
<Value>Secret!</Value> | |
<PlainText>true</PlainText> | |
</Password> | |
<Description>Joshua Haupt</Description> | |
<DisplayName>hauptj</DisplayName> | |
<Group>administrators</Group> | |
<Name>hauptj</Name> | |
</LocalAccount> | |
</LocalAccounts> | |
</UserAccounts> | |
<OOBE> | |
<HideEULAPage>true</HideEULAPage> | |
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE> | |
<NetworkLocation>Home</NetworkLocation> | |
<!-- | |
ProtectYourPC: | |
1 Specifies the recommended level of protection for your computer. | |
2 Specifies that only updates are installed. | |
3 Specifies that automatic protection is disabled. | |
--> | |
<ProtectYourPC>1</ProtectYourPC> | |
</OOBE> | |
<AutoLogon> | |
<Password> | |
<Value>Secret!</Value> | |
<PlainText>true</PlainText> | |
</Password> | |
<Username>Administrator</Username> | |
<Enabled>true</Enabled> | |
</AutoLogon> | |
<FirstLogonCommands> | |
<SynchronousCommand wcm:action="add"> | |
<CommandLine>powershell -Command "Set-ExecutionPolicy Unrestricted -Force"</CommandLine> | |
<Order>1</Order> | |
<Description>Set ExecutionPolicy to Unrestricted</Description> | |
</SynchronousCommand> | |
<SynchronousCommand wcm:action="add"> | |
<CommandLine>powershell -Command "winrm quickconfig -Force"</CommandLine> | |
<Order>2</Order> | |
<Description>Enable WINRM</Description> | |
</SynchronousCommand> | |
<SynchronousCommand wcm:action="add"> | |
<CommandLine>powershell -Command "Invoke-WebRequest -Uri https://raw.githubusercontent.com/cloudbase/unattended-setup-scripts/master/GetFileHash.ps1 -OutFile C:\Windows\Temp\GetFileHash.ps1"</CommandLine> | |
<Order>3</Order> | |
<Description>Download Script to get hash if PS version lt 4</Description> | |
</SynchronousCommand> | |
<SynchronousCommand wcm:action="add"> | |
<CommandLine>powershell -Command "Invoke-WebRequest -Uri https://gist.githubusercontent.com/HauptJ/df2fa41d06b87641ed15452150e3429d/raw/3d974a2fe4db074b6f26bbe4f8d38f07fcd3133a/SetupWinRMAccessSelfSigned.ps1 -OutFile C:\Windows\Temp\SetupWinRMAccessSelfSigned.ps1"</CommandLine> | |
<Order>4</Order> | |
<Description>Download Script to Enable WINRM over HTTPS</Description> | |
</SynchronousCommand> | |
<SynchronousCommand wcm:action="add"> | |
<CommandLine>powershell -ExecutionPolicy Unrestricted -File "C:\Windows\Temp\SetupWinRMAccessSelfSigned.ps1"</CommandLine> | |
<Order>5</Order> | |
<Description>Enable WINRM over HTTPS</Description> | |
</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>Dragon-Aurora</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="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> | |
<SkipAutoActivation>false</SkipAutoActivation> | |
</component> | |
</settings> | |
<cpi:offlineImage xmlns:cpi="urn:schemas-microsoft-com:cpi" cpi:source="catalog:d:/sources/install_windows 7 ENTERPRISE.clg"/> | |
</unattend> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment