From 03077276b4041d30b29d3bbf0a2a6707c89a8ecf Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Mon, 11 Mar 2024 17:33:21 +0100 Subject: [PATCH] Exclude unattend settings --- Autounattend.template.xml | 244 -------------------------------------- deploy.sh | 1 - 2 files changed, 245 deletions(-) delete mode 100644 Autounattend.template.xml diff --git a/Autounattend.template.xml b/Autounattend.template.xml deleted file mode 100644 index 857787f..0000000 --- a/Autounattend.template.xml +++ /dev/null @@ -1,244 +0,0 @@ - - - - - - en-US - - 0807:00000807 - en-US - en-US - en-US - en-US - - - - - 0 - true - - - - 1 - Primary - 300 - - - - 2 - EFI - 100 - - - - 3 - MSR - 128 - - - - 4 - Primary - true - - - - - - 1 - 1 - - NTFS - de94bba4-06d1-4d40-a16a-bfd50179d6ac - - - - 2 - 2 - - FAT32 - - - - 3 - 3 - - - - 4 - 4 - - C - NTFS - - - - OnError - - - - - 0 - 4 - - - - - - VK7JG-NPHTM-C97JM-9MPGT-3V66T - Never - - true - Admin - - - - - - - false - - - - - 1 - - - - - 0807:00000807 - de-CH - en-US - en-US - de-CH - - - true - - - 0 - - - - VK7JG-NPHTM-C97JM-9MPGT-3V66T - - - - - - - - true</PlainText> - </Password> - <Enabled>true</Enabled> - <Username>Admin</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>Admin</DisplayName> - <Group>Administrators</Group> - <Name>Admin</Name> - </LocalAccount> - </LocalAccounts> - </UserAccounts> - <RegisteredOrganization></RegisteredOrganization> - <RegisteredOwner>Admin</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>1</Order> - <RequiresUserInput>true</RequiresUserInput> - <CommandLine>cmd /C wmic useraccount where name="Admin" set PasswordExpires=false</CommandLine> - <Description>Password Never Expires</Description> - </SynchronousCommand> - <SynchronousCommand wcm:action="add"> - <Order>2</Order> - <RequiresUserInput>false</RequiresUserInput> - <CommandLine>powershell -Command "Set-ExecutionPolicy -Force Bypass"</CommandLine> - <Description>Allow PowerShell scripts from anywhere.</Description> - </SynchronousCommand> - <SynchronousCommand wcm:action="add"> - <Order>3</Order> - <RequiresUserInput>false</RequiresUserInput> - <CommandLine>powershell -Command [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; -iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')); - -Import-Module $env:ChocolateyInstall/helpers/chocolateyProfile.psm1; - -choco install -y git --params='/WindowsTerminalProfile /DefaultBranchName:main'; -choco install -y powershell-core --install-arguments='"ADD_FILE_CONTEXT_MENU_RUNPOWERSHELL=1 ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1 REGISTER_MANIFEST=1 USE_MU=1 ENABLE_MU=1"'; -refreshenv; - -if (-not $(Get-Command winget)) { - choco install -y winget; -} - -cd C:/; -git clone https://git.nuth.ch/manuth/PortValhalla.git; -cd PortValhalla;</CommandLine> - <Description>Install PowerShell Core and git and run setup</Description> - </SynchronousCommand> - </FirstLogonCommands> - <TimeZone>W. Europe Standard Time</TimeZone> - </component> - </settings> -</unattend> diff --git a/deploy.sh b/deploy.sh index 6b9cd98..70d6e81 100755 --- a/deploy.sh +++ b/deploy.sh @@ -132,7 +132,6 @@ else sudo mount "$WIN11_IMAGE_PATH" "$mountPath"; sudo cp -r "$mountPath"/* "$dataPath"; - sudo cp Autounattend.template.xml "$dataPath"; sudo cp -r "$mountPath/efi" "$bootPath"; wimFile="$dataPath/sources/install.wim";