From f9a52f1fe2f7f485ee9f7708ac4f3d777decd625 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 21 Jan 2024 08:18:48 +0000 Subject: [PATCH] initial --- Autounattend.xml | 319 +++++++++++++++++++++++++++++++++++++++++++++++ make_iso.sh | 33 +++++ 2 files changed, 352 insertions(+) create mode 100644 Autounattend.xml create mode 100755 make_iso.sh diff --git a/Autounattend.xml b/Autounattend.xml new file mode 100644 index 0000000..2ecba6a --- /dev/null +++ b/Autounattend.xml @@ -0,0 +1,319 @@ + + + + + + + +en-US + +0c09:00000409 +en-US +en-US +en-US +en-AU + + + +en-US + +0c09:00000409 +en-US +en-US +en-US +en-AU + + + + + + +1 +Primary +100 + + +true +2 +Primary + + + + +true +NTFS + +1 +1 +0x27 + + +true +NTFS + +C +2 +2 + + +0 +true + + + + + +0 +2 + +false + + + +true +greg + + +W269N-WFGWX-YVC9B-4J6C9-T83GX + + + + + + + + +1 +Primary +100 + + +true +2 +Primary + + + + +true +NTFS + +1 +1 +0x27 + + +true +NTFS + +C +2 +2 + + +0 +true + + + + + +0 +2 + +false + + + +true +greg + + +W269N-WFGWX-YVC9B-4J6C9-T83GX + + + + + + +false + + + + +false + + + + +1 + + + + +1 + + + + +0c09:00000409 +en-AU +en-AU +en-AU +en-AU + + +0c09:00000409 +en-AU +en-AU +en-AU +en-AU + + +true + + +true + + +0 + + +0 + + +-PC +W269N-WFGWX-YVC9B-4J6C9-T83GX + + +-PC +W269N-WFGWX-YVC9B-4J6C9-T83GX + + + + + + + +true</PlainText> +</Password> +<Enabled>true</Enabled> +<Username>greg</Username> +</AutoLogon> +<OOBE> +<HideEULAPage>true</HideEULAPage> +<HideOEMRegistrationScreen>true</HideOEMRegistrationScreen> +<HideOnlineAccountScreens>true</HideOnlineAccountScreens> +<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE> +<NetworkLocation>Home</NetworkLocation> +<SkipUserOOBE>true</SkipUserOOBE> +<SkipMachineOOBE>true</SkipMachineOOBE> +<ProtectYourPC>1</ProtectYourPC> +</OOBE> +<UserAccounts> +<LocalAccounts> +<LocalAccount wcm:action="add"> +<Password> +<Value></Value> +<PlainText>true</PlainText> +</Password> +<Description></Description> +<DisplayName>greg</DisplayName> +<Group>Administrators</Group> +<Name>greg</Name> +</LocalAccount> +</LocalAccounts> +</UserAccounts> +<RegisteredOrganization></RegisteredOrganization> +<RegisteredOwner>greg</RegisteredOwner> +<DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet> +<FirstLogonCommands> +<SynchronousCommand wcm:action="add"> +<Description>Control Panel View</Description> +<Order>1</Order> +<CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v StartupPage /t REG_DWORD /d 1 /f</CommandLine> +<RequiresUserInput>true</RequiresUserInput> +</SynchronousCommand> +<SynchronousCommand wcm:action="add"> +<Order>2</Order> +<Description>Control Panel Icon Size</Description> +<RequiresUserInput>false</RequiresUserInput> +<CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v AllItemsIconView /t REG_DWORD /d 0 /f</CommandLine> +</SynchronousCommand> +<SynchronousCommand wcm:action="add"> +<Order>3</Order> +<RequiresUserInput>false</RequiresUserInput> +<CommandLine>cmd /C wmic useraccount where name="greg" set PasswordExpires=false</CommandLine> +<Description>Password Never Expires</Description> +</SynchronousCommand> +</FirstLogonCommands> +<TimeZone>AUS Eastern Standard Time</TimeZone> +</component> +<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"> +<AutoLogon> +<Password> +<Value></Value> +<PlainText>true</PlainText> +</Password> +<Enabled>true</Enabled> +<Username>greg</Username> +</AutoLogon> +<OOBE> +<HideEULAPage>true</HideEULAPage> +<HideOEMRegistrationScreen>true</HideOEMRegistrationScreen> +<HideOnlineAccountScreens>true</HideOnlineAccountScreens> +<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE> +<NetworkLocation>Home</NetworkLocation> +<SkipUserOOBE>true</SkipUserOOBE> +<SkipMachineOOBE>true</SkipMachineOOBE> +<ProtectYourPC>1</ProtectYourPC> +</OOBE> +<UserAccounts> +<LocalAccounts> +<LocalAccount wcm:action="add"> +<Password> +<Value></Value> +<PlainText>true</PlainText> +</Password> +<Description></Description> +<DisplayName>greg</DisplayName> +<Group>Administrators</Group> +<Name>greg</Name> +</LocalAccount> +</LocalAccounts> +</UserAccounts> +<RegisteredOrganization></RegisteredOrganization> +<RegisteredOwner>greg</RegisteredOwner> +<DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet> +<FirstLogonCommands> +<SynchronousCommand wcm:action="add"> +<Description>Control Panel View</Description> +<Order>1</Order> +<CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v StartupPage /t REG_DWORD /d 1 /f</CommandLine> +<RequiresUserInput>true</RequiresUserInput> +</SynchronousCommand> +<SynchronousCommand wcm:action="add"> +<Order>2</Order> +<Description>Control Panel Icon Size</Description> +<RequiresUserInput>false</RequiresUserInput> +<CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v AllItemsIconView /t REG_DWORD /d 0 /f</CommandLine> +</SynchronousCommand> +<SynchronousCommand wcm:action="add"> +<Order>3</Order> +<RequiresUserInput>false</RequiresUserInput> +<CommandLine>cmd /C wmic useraccount where name="greg" set PasswordExpires=false</CommandLine> +<Description>Password Never Expires</Description> +</SynchronousCommand> +</FirstLogonCommands> +<TimeZone>AUS Eastern Standard Time</TimeZone> +</component> +</settings> +</unattend> diff --git a/make_iso.sh b/make_iso.sh new file mode 100755 index 0000000..5192e43 --- /dev/null +++ b/make_iso.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +# Download Windows ISO +# For other Windows images: +# https://www.microsoft.com/en-us/software-download/windows10 +curl -L 'https://software.download.prss.microsoft.com/dbazure/Win10_22H2_English_x64v1.iso?t=6581e2e7-d916-4200-8190-6828a7e33a09&e=1705909660&h=3cd386b1d91395baa96b6fe52e12229fab8b64cf1f07a80228928c389ead697f' -o Windows10_x86_64_English.iso + +mkdir win10_iso +mkdir win10_iso_modified +sudo mount -o loop Windows10_x86_64_English.iso win10_iso +cp -R win10_iso/* win10_iso_modified +cp Autounattend.xml win10_iso_modified + +# Make an ISO +# Ref: https://adminthing.blogspot.com/2020/06/modify-windows-ISO.html +mkisofs \ + -bboot/etfsboot.com \ + -no-emul-boot \ + -boot-load-seg 1984 \ + -boot-load-size 8 \ + -iso-level 2 \ + -J \ + -l \ + -D \ + -N \ + -joliet-long \ + -allow-limited-size \ + -relaxed-filenames \ + -V "WINSP" \ + -o Win10_English_x86_64_Autounattend.iso \ + ./win10_iso_modified + +sudo umount win10_iso