Skip to content

Instantly share code, notes, and snippets.

@oncipriani
Last active May 7, 2020 22:01
Show Gist options
  • Save oncipriani/ec558145ab40767931dbbdceff3b02e6 to your computer and use it in GitHub Desktop.
Save oncipriani/ec558145ab40767931dbbdceff3b02e6 to your computer and use it in GitHub Desktop.
Windows unattended instalation file.
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<servicing>
<package action="remove">
<assemblyIdentity name="Microsoft-Windows-QuickAssist-Package" version="10.0.16299.15" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="" />
</package>
<package action="remove">
<assemblyIdentity name="Microsoft-Windows-MediaPlayer-Package" version="10.0.16299.15" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="" />
</package>
<package action="configure">
<assemblyIdentity name="Microsoft-Windows-Foundation-Package" version="10.0.16299.15" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="" />
<selection name="WorkFolders-Client" state="false" />
<selection name="MediaPlayback" state="false" />
<selection name="Printing-XPSServices-Features" state="false" />
<selection name="SMB1Protocol" state="false" />
<selection name="SMB1Protocol-Deprecation" state="false" />
<selection name="SMB1Protocol-Client" state="false" />
<selection name="WindowsMediaPlayer" state="false" />
<selection name="WCF-TCP-PortSharing45" state="false" />
<selection name="WCF-Services45" state="false" />
<selection name="NetFx4-AdvSrvs" state="false" />
<selection name="Microsoft-Hyper-V-All" state="true" />
<selection name="Microsoft-Hyper-V-Tools-All" state="true" />
<selection name="Microsoft-Hyper-V-Management-PowerShell" state="true" />
<selection name="Microsoft-Hyper-V-Management-Clients" state="true" />
<selection name="Microsoft-Hyper-V" state="true" />
<selection name="Microsoft-Hyper-V-Services" state="true" />
<selection name="Microsoft-Hyper-V-Hypervisor" state="true" />
<selection name="Microsoft-Windows-Subsystem-Linux" state="true" />
<selection name="Printing-Foundation-Features" state="false" />
<selection name="FaxServicesClientPackage" state="false" />
<selection name="Printing-Foundation-InternetPrinting-Client" state="false" />
</package>
</servicing>
<settings pass="windowsPE">
<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">
<Order>1</Order>
<Size>260</Size>
<Type>EFI</Type>
</CreatePartition>
<CreatePartition wcm:action="add">
<Order>2</Order>
<Size>16</Size>
<Type>MSR</Type>
</CreatePartition>
<CreatePartition wcm:action="add">
<Order>3</Order>
<Size>450</Size>
<Type>Primary</Type>
</CreatePartition>
<CreatePartition wcm:action="add">
<Order>4</Order>
<Type>Primary</Type>
<Extend>true</Extend>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Format>FAT32</Format>
<Label>System</Label>
<Order>1</Order>
<PartitionID>1</PartitionID>
</ModifyPartition>
<ModifyPartition wcm:action="add">
<Format>NTFS</Format>
<Label>WinRE</Label>
<TypeID>de94bba4-06d1-4d40-a16a-bfd50179d6ac</TypeID>
<Order>2</Order>
<PartitionID>3</PartitionID>
</ModifyPartition>
<ModifyPartition wcm:action="add">
<Order>3</Order>
<PartitionID>4</PartitionID>
<Label>Windows</Label>
<Letter>C</Letter>
<Format>NTFS</Format>
</ModifyPartition>
</ModifyPartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
<Disk wcm:action="add">
<CreatePartitions>
<CreatePartition wcm:action="add">
<Type>Primary</Type>
<Extend>true</Extend>
<Order>2</Order>
</CreatePartition>
<CreatePartition wcm:action="add">
<Order>1</Order>
<Size>16</Size>
<Type>MSR</Type>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Format>NTFS</Format>
<Label>Dados</Label>
<Letter>D</Letter>
<Order>1</Order>
<PartitionID>2</PartitionID>
</ModifyPartition>
</ModifyPartitions>
<DiskID>1</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>4</PartitionID>
</InstallTo>
<InstallFrom>
<MetaData wcm:action="add">
<Key>/IMAGE/NAME</Key>
<Value>Windows 10 Pro</Value>
</MetaData>
</InstallFrom>
</OSImage>
</ImageInstall>
<UserData>
<ProductKey>
<Key>VK7JG-NPHTM-C97JM-9MPGT-3V66T</Key>
<WillShowUI>OnError</WillShowUI>
</ProductKey>
<AcceptEula>true</AcceptEula>
</UserData>
</component>
<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>0416:00020409</InputLocale>
<SystemLocale>pt-BR</SystemLocale>
<UILanguage>pt-BR</UILanguage>
<UserLocale>pt-BR</UserLocale>
</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">
<FolderLocations>
<ProfilesDirectory>D:\Users</ProfilesDirectory>
</FolderLocations>
</component>
<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>0416:00020409; 0416:00010416</InputLocale>
<SystemLocale>pt-BR</SystemLocale>
<UILanguage>pt-BR</UILanguage>
<UserLocale>pt-BR</UserLocale>
</component>
</settings>
<settings pass="specialize">
<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">
<RunAsynchronous>
<RunAsynchronousCommand wcm:action="add">
<Path>REG ADD &quot;HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata&quot; /v PreventDeviceMetadataFromNetwork /t REG_DWORD /d 1 /f</Path>
<Order>1</Order>
<Description>Prevent download of device metadata</Description>
</RunAsynchronousCommand>
<RunAsynchronousCommand wcm:action="add">
<Description>Disable key sequence to shift between input locales (legacy)</Description>
<Order>2</Order>
<Path>REG ADD &quot;HKU\.DEFAULT\Keyboard Layout\Toggle&quot; /v Hotkey /t REG_SZ /d 3 /f</Path>
</RunAsynchronousCommand>
<RunAsynchronousCommand wcm:action="add">
<Description>Disable key sequence to shift between input locales</Description>
<Order>3</Order>
<Path>REG ADD &quot;HKU\.DEFAULT\Keyboard Layout\Toggle&quot; /v &quot;Language Hotkey&quot; /t REG_SZ /d 3 /f</Path>
</RunAsynchronousCommand>
<RunAsynchronousCommand wcm:action="add">
<Description>Disable key sequence to shift between keyboard layouts</Description>
<Order>4</Order>
<Path>REG ADD &quot;HKU\.DEFAULT\Keyboard Layout\Toggle&quot; /v &quot;Layout Hotkey&quot; /t REG_SZ /d 3 /f</Path>
</RunAsynchronousCommand>
<RunAsynchronousCommand wcm:action="add">
<Description>Turn off Keyboard Response accessibility options</Description>
<Order>5</Order>
<Path>REG ADD &quot;HKU\.DEFAULT\Control Panel\Accessibility\Keyboard Response&quot; /v &quot;Flags&quot; /t REG_SZ /d 0 /f</Path>
</RunAsynchronousCommand>
<RunAsynchronousCommand wcm:action="add">
<Description>Turn off Mouse Keys accessibility options</Description>
<Order>6</Order>
<Path>REG ADD &quot;HKU\.DEFAULT\Control Panel\Accessibility\MouseKeys&quot; /v &quot;Flags&quot; /t REG_SZ /d 0 /f</Path>
</RunAsynchronousCommand>
<RunAsynchronousCommand wcm:action="add">
<Description>Turn off Sticky Keys accessibility options</Description>
<Order>7</Order>
<Path>REG ADD &quot;HKU\.DEFAULT\Control Panel\Accessibility\StickyKeys&quot; /v &quot;Flags&quot; /t REG_SZ /d 0 /f</Path>
</RunAsynchronousCommand>
<RunAsynchronousCommand wcm:action="add">
<Description>Turn off Toggle Keys accessibility options</Description>
<Order>8</Order>
<Path>REG ADD &quot;HKU\.DEFAULT\Control Panel\Accessibility\ToggleKeys&quot; /v &quot;Flags&quot; /t REG_SZ /d 0 /f</Path>
</RunAsynchronousCommand>
</RunAsynchronous>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:c:/temp/install.wim#Windows 10 Pro" 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