Created
January 13, 2021 23:33
-
-
Save valinet/e39909c7dd414e73dcc79599befc22d0 to your computer and use it in GitHub Desktop.
Custom Windows 10 unattend.xml for Sysprep.
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-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"> | |
<UserData> | |
<AcceptEula>true</AcceptEula> | |
</UserData> | |
</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"> | |
<OOBE> | |
<HideEULAPage>true</HideEULAPage> | |
<HideOEMRegistrationScreen>true</HideOEMRegistrationScreen> | |
<HideOnlineAccountScreens>true</HideOnlineAccountScreens> | |
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE> | |
<NetworkLocation>Home</NetworkLocation> | |
<SkipMachineOOBE>true</SkipMachineOOBE> | |
<SkipUserOOBE>true</SkipUserOOBE> | |
</OOBE> | |
<UserAccounts> | |
<LocalAccounts> | |
<LocalAccount wcm:action="add"> | |
<Description>Valentin</Description> | |
<DisplayName></DisplayName> | |
<Group>Administrators</Group> | |
<Name>Valentin</Name> | |
</LocalAccount> | |
</LocalAccounts> | |
</UserAccounts> | |
<FirstLogonCommands> | |
<SynchronousCommand wcm:action="add"> | |
<CommandLine>reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce" /v "disabledmwappushservice" /t REG_SZ /d "sc config dmwappushservice start= disabled"</CommandLine> | |
<Description>Disable dmwappushservice</Description> | |
<Order>1</Order> | |
<RequiresUserInput>false</RequiresUserInput> | |
</SynchronousCommand> | |
<SynchronousCommand wcm:action="add"> | |
<Order>2</Order> | |
<Description>Set password to never expires</Description> | |
<CommandLine>wmic USERACCOUNT WHERE "Name='%username%'" set PasswordExpires=FALSE</CommandLine> | |
<RequiresUserInput>false</RequiresUserInput> | |
</SynchronousCommand> | |
</FirstLogonCommands> | |
</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"> | |
<CopyProfile>true</CopyProfile> | |
</component> | |
</settings> | |
<cpi:offlineImage cpi:source="wim:c:/users/valentin/downloads/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