Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
refactor: simplify setup using trycua/windows-local
[email protected]dbc00bad6405
diff --git a/libs/qemu-docker/windows/Dockerfile b/libs/qemu-docker/windows/Dockerfileindex e0c4b30439..da5a15ce27 100644--- a/libs/qemu-docker/windows/Dockerfile+++ b/libs/qemu-docker/windows/Dockerfile@@ -1,40 +1,8 @@-# Define build argument for deployment mode (default is dev, can also be azure)-ARG DEPLOY_MODE="dev"+FROM trycua/windows-local:latest-# Conditional copy of files based on build argument-FROM windowsarena/windows-local:latest AS build_dev-ONBUILD COPY src/vm/setup/. /shared/-ONBUILD COPY src/vm/unattend-files/dev_win11x64-enterprise-eval.xml /run/assets/win11x64-enterprise-eval.xml-ONBUILD ENV FOLDER_NAME=shared+COPY src/vm/setup/. /oem/-FROM windowsarena/windows-local:latest AS build_azure-ONBUILD COPY src/vm/setup/. /oem/-ONBUILD COPY src/vm/unattend-files/azure_win11x64-enterprise-eval.xml /run/assets/win11x64-enterprise-eval.xml-ONBUILD ENV FOLDER_NAME=oem--FROM build_${DEPLOY_MODE}--ARG DEPLOY_MODE="dev"-ENV DEPLOY_MODE=${DEPLOY_MODE}--RUN echo "FOLDER_NAME: ${FOLDER_NAME}"-RUN echo "DEPLOY_MODE: ${DEPLOY_MODE}"--# If azure, replace windows data folder with oem folder-RUN if [ "${DEPLOY_MODE}" = "azure" ]; then \- WINDOWS_DATA_FOLDER='\\\\host.lan\\Data'; \- WINDOWS_OEM_FOLDER='C:\\oem'; \- OEM_FOLDER='oem'; \- sed -i "s|${WINDOWS_DATA_FOLDER}|${WINDOWS_OEM_FOLDER}|g" "/${OEM_FOLDER}/on-logon.ps1"; \- sed -i "s|${WINDOWS_DATA_FOLDER}|${WINDOWS_OEM_FOLDER}|g" "/${OEM_FOLDER}/setup.ps1"; \- fi--# Install fuse and socat (for port forwarding)-RUN apt-get update && apt-get install -y fuse socat--# Copy entry script-COPY src/entry.sh /entry.sh-RUN chmod +x /entry.sh+COPY --chmod=755 src/entry.sh /entry.shENV YRES="900"ENV XRES="1440"@@ -42,11 +10,8 @@ ENV RAM_SIZE="8G"ENV CPU_CORES="8"ENV VERSION="win11x64-enterprise-eval"ENV DISK_SIZE="30G"--# Enable QEMU's JSON-based QEMU Machine Protocol (QMP)ENV ARGUMENTS="-qmp tcp:0.0.0.0:7200,server,nowait"-# Expose portsEXPOSE 5000 8006ENTRYPOINT ["/entry.sh"]\ No newline at end of filediff --git a/libs/qemu-docker/windows/README.md b/libs/qemu-docker/windows/README.mdindex 59d6bacd6c..b7309c548d 100644--- a/libs/qemu-docker/windows/README.md+++ b/libs/qemu-docker/windows/README.md@@ -31,11 +31,7 @@ This ISO is used for automated Windows installation on first run.### 2. Build the Image```bash-# Build for dev mode (uses shared folder)-docker build --build-arg DEPLOY_MODE=dev -t cua-windows:dev .--# Or build for azure mode (uses OEM folder)-docker build --build-arg DEPLOY_MODE=azure -t cua-windows:azure .+docker build -t cua-windows:dev .```### 3. First Run - Create Golden Image@@ -65,7 +61,7 @@ docker run -it --rm \**What happens during first run:**1. Windows 11 installs automatically using unattended configuration-2. Setup scripts install Python 3.12 (via Chocolatey), essential tools, and CUA computer-server in isolated venv+2. Setup scripts install Python 3.12, Git, and CUA computer-server in isolated venv3. Windows scheduled tasks created for CUA server and Caddy proxy (run hidden in background)4. Golden image is saved to `/storage` directory5. Container exits after setup completes@@ -109,27 +105,12 @@ docker run -it --rm \- `YRES`: Screen height (default: "900")- `XRES`: Screen width (default: "1440")- `VERSION`: Windows version (default: "win11x64-enterprise-eval")-- `DEPLOY_MODE`: Deployment mode - "dev" or "azure" (set during build)### Volumes- `/storage`: Persistent VM storage (golden image, disk, firmware)- `/custom.iso`: Mount point for setup.iso (only needed for first run)-### Deployment Modes--**Dev Mode (`DEPLOY_MODE=dev`):**--- Setup files mounted at `/shared` in container-- Accessible to Windows VM via `\\host.lan\Data`-- Useful for development and testing--**Azure Mode (`DEPLOY_MODE=azure`):**--- Setup files copied to `/oem` in container-- Accessible to Windows VM via `C:\oem`-- Used for production deployment on Azure ML-## Architecture```@@ -165,30 +146,15 @@ Setup scripts are in `src/vm/setup/`:- `install.bat`: Entry point called by Windows setup- `setup.ps1`: Main setup orchestration (installs software, configures Windows)- `setup-cua-server.ps1`: CUA server installation with isolated venv-- `setup-caddy-proxy.ps1`: Caddy reverse proxy configuration- `on-logon.ps1`: Runs on user logon (starts scheduled tasks)-- `setup-tools.psm1`: PowerShell helper functions+- `setup-utils.psm1`: Helpers functions for setupAfter modifying, rebuild the image:```bash-docker build --build-arg DEPLOY_MODE=dev -t cua-windows:dev .+docker build -t cua-windows:dev .```-### Customizing Windows Configuration--Unattended installation files are in `src/vm/unattend-files/`:--- `dev_win11x64-enterprise-eval.xml`: For dev mode-- `azure_win11x64-enterprise-eval.xml`: For Azure mode--These XML files control:--- User account creation-- Auto-logon settings-- First-run commands-- Timezone and locale-## Credits- Built on [Dockur Windows](https://github.com/dockur/windows) base imagediff --git a/libs/qemu-docker/windows/src/entry.sh b/libs/qemu-docker/windows/src/entry.shindex 9f9eb19a0b..96911911c4 100644--- a/libs/qemu-docker/windows/src/entry.sh+++ b/libs/qemu-docker/windows/src/entry.sh@@ -1,8 +1,5 @@#!/bin/bash-# Fix for Azure ML Job not using the correct root path-cd /-# Create windows.boot file if it doesn't exist (required for proper boot)if [ -d "/storage" -a ! -f "/storage/windows.boot" ]; thenecho "Creating windows.boot file in /storage..."@@ -15,9 +12,23 @@ echo "Starting Windows VM..."echo "Live stream accessible at localhost:8006"echo "Waiting for Windows to boot and CUA computer-server to start..."++VM_IP=""while true; do+ # Wait from VM and get the IP+ if [ -z "$VM_IP" ]; then+ VM_IP=$(ps aux | grep dnsmasq | grep -oP '(?<=--dhcp-range=)[0-9.]+' | head -1)+ if [ -n "$VM_IP" ]; then+ echo "Detected VM IP: $VM_IP"+ else+ echo "Waiting for VM to start..."+ sleep 5+ continue+ fi+ fi+# Check if server is ready- response=$(curl --write-out '%{http_code}' --silent --output /dev/null 20.20.20.21:5000/status)+ response=$(curl --write-out '%{http_code}' --silent --output /dev/null $VM_IP:5000/status)if [ "${response:-0}" -eq 200 ]; thenbreak@@ -29,10 +40,6 @@ doneecho "VM is up and running, and the CUA Computer Server is ready!"-# Set up port forwarding from localhost:5000 to VM emulator IP-echo "Setting up port forwarding: localhost:5000 -> 20.20.20.21:5000"-socat TCP-LISTEN:5000,fork,reuseaddr TCP:20.20.20.21:5000 &-echo "Computer server accessible at localhost:5000"# Detect initial setup by presence of /custom.iso (setup ISO mount)diff --git a/libs/qemu-docker/windows/src/vm/setup/install.bat b/libs/qemu-docker/windows/src/vm/setup/install.batindex f7fb5d807b..bfda4ea234 100644--- a/libs/qemu-docker/windows/src/vm/setup/install.bat+++ b/libs/qemu-docker/windows/src/vm/setup/install.bat@@ -1,6 +1,6 @@@echo off-SET ScriptFolder=\\host.lan\Data+SET ScriptFolder=C:\OEMSET LogFile=%ScriptFolder%\ps_script_log.txtecho Running PowerShell script... > %LogFile%diff --git a/libs/qemu-docker/windows/src/vm/setup/on-logon.ps1 b/libs/qemu-docker/windows/src/vm/setup/on-logon.ps1index 61d68d5500..f9aad48c73 100644--- a/libs/qemu-docker/windows/src/vm/setup/on-logon.ps1+++ b/libs/qemu-docker/windows/src/vm/setup/on-logon.ps1@@ -1,7 +1,2 @@-# Start the Caddy Reverse Proxy scheduled task (runs in background, hidden)-Write-Host "Starting Caddy Reverse Proxy task..."-Start-ScheduledTask -TaskName "Caddy-Reverse-Proxy"--# Start the CUA Computer Server scheduled task (runs in background, hidden)Write-Host "Starting CUA Computer Server task..."Start-ScheduledTask -TaskName "CUA-Computer-Server"diff --git a/libs/qemu-docker/windows/src/vm/setup/setup-caddy-proxy.ps1 b/libs/qemu-docker/windows/src/vm/setup/setup-caddy-proxy.ps1deleted file mode 100644index 33ba8dd2db..0000000000--- a/libs/qemu-docker/windows/src/vm/setup/setup-caddy-proxy.ps1+++ /dev/null@@ -1,104 +0,0 @@-# Setup Caddy Reverse Proxy on Windows 11-# Creates a scheduled task to run Caddy in background--Set-StrictMode -Version Latest-$ErrorActionPreference = 'Continue'--# Import shared utilities-$scriptFolder = "\\host.lan\Data"-Import-Module (Join-Path $scriptFolder -ChildPath "setup-tools.psm1")--# --- Logging ----$LogDir = "C:\Windows\Temp"-if (!(Test-Path $LogDir)) { New-Item -ItemType Directory -Force -Path $LogDir | Out-Null }-$RunId = (Get-Date -Format 'yyyyMMdd_HHmmss') + "_" + $PID-$script:LogFile = Join-Path $LogDir ("setup_caddy_proxy_" + $RunId + ".log")--Write-Log -LogFile $script:LogFile -Message "=== Setting up Caddy Reverse Proxy ==="--# Create directory for Caddy-$HomeDir = $env:USERPROFILE-$CaddyDir = Join-Path $HomeDir '.caddy-proxy'-New-Item -ItemType Directory -Force -Path $CaddyDir | Out-Null--# Create start script for Caddy-$StartScript = Join-Path $CaddyDir 'start-caddy.ps1'-$CaddyExePath = "C:\Users\$env:USERNAME\caddy_windows_amd64.exe"-$StartScriptContent = @"-param()--`$LogFile = Join-Path '$CaddyDir' 'caddy.log'-`$CaddyExe = '$CaddyExePath'--while (`$true) {- Write-Output "Starting Caddy reverse proxy from port 9222 to port 1337..." | Out-File -FilePath `$LogFile -Append- & `$CaddyExe reverse-proxy --from :9222 --to :1337 2>&1 | Out-File -FilePath `$LogFile -Append- `$code = `$LASTEXITCODE- Write-Output "Caddy exited with code: `$code. Restarting in 5s..." | Out-File -FilePath `$LogFile -Append- Start-Sleep -Seconds 5-}-"@--Set-Content -Path $StartScript -Value $StartScriptContent -Encoding UTF8-Write-Log -LogFile $script:LogFile -Message "Start script created at $StartScript"--# Create VBScript wrapper to launch PowerShell hidden-$VbsWrapper = Join-Path $CaddyDir 'start-caddy-hidden.vbs'-$VbsContent = @"-Set objShell = CreateObject("WScript.Shell")-objShell.Run "powershell.exe -NoProfile -ExecutionPolicy Bypass -File ""$StartScript""", 0, False-"@-Set-Content -Path $VbsWrapper -Value $VbsContent -Encoding ASCII-Write-Log -LogFile $script:LogFile -Message "VBScript wrapper created at $VbsWrapper"--# Create scheduled task to run at logon-try {- $TaskName = 'Caddy-Reverse-Proxy'- $Username = 'Docker' # Default user for Dockur Windows-- # Remove existing task if present- $existingTask = Get-ScheduledTask -TaskName $TaskName -ErrorAction SilentlyContinue- if ($existingTask) {- Write-Log -LogFile $script:LogFile -Message "Removing existing scheduled task: $TaskName"- Unregister-ScheduledTask -TaskName $TaskName -Confirm:$false- }-- # Create action to run VBScript wrapper (hidden)- $Action = New-ScheduledTaskAction -Execute 'wscript.exe' -Argument "`"$VbsWrapper`""-- # Trigger: At logon of user- $UserId = "$env:COMPUTERNAME\$Username"- $Trigger = New-ScheduledTaskTrigger -AtLogOn -User $UserId-- # Principal: Run in background without window (S4U = Service For User)- $Principal = New-ScheduledTaskPrincipal -UserId $UserId -LogonType S4U -RunLevel Highest-- # Task settings - hide window- $Settings = New-ScheduledTaskSettingsSet `- -AllowStartIfOnBatteries `- -DontStopIfGoingOnBatteries `- -StartWhenAvailable `- -RestartCount 999 `- -RestartInterval (New-TimeSpan -Minutes 1) `- -ExecutionTimeLimit (New-TimeSpan -Days 365) `- -Hidden-- # Register the task- Write-Log -LogFile $script:LogFile -Message "Registering scheduled task '$TaskName' to run as $Username at logon (hidden)"- Register-ScheduledTask `- -TaskName $TaskName `- -Action $Action `- -Trigger $Trigger `- -Principal $Principal `- -Settings $Settings `- -Force | Out-Null-- Write-Log -LogFile $script:LogFile -Message "Scheduled task '$TaskName' registered successfully (runs hidden in background)"--} catch {- Write-Log -LogFile $script:LogFile -Message "Scheduled task setup error: $($_.Exception.Message)"- throw-}--Write-Log -LogFile $script:LogFile -Message "=== Caddy Reverse Proxy setup completed ==="-exit 0diff --git a/libs/qemu-docker/windows/src/vm/setup/setup-cua-server.ps1 b/libs/qemu-docker/windows/src/vm/setup/setup-cua-server.ps1index d914709d1c..40956b67e7 100644--- a/libs/qemu-docker/windows/src/vm/setup/setup-cua-server.ps1+++ b/libs/qemu-docker/windows/src/vm/setup/setup-cua-server.ps1@@ -5,8 +5,8 @@ Set-StrictMode -Version Latest$ErrorActionPreference = 'Continue'# Import shared utilities-$scriptFolder = "\\host.lan\Data"-Import-Module (Join-Path $scriptFolder -ChildPath "setup-tools.psm1")+$scriptFolder = "C:\OEM"+Import-Module (Join-Path $scriptFolder -ChildPath "setup-utils.psm1")# --- Logging ---$LogDir = "C:\Windows\Temp"@@ -16,31 +16,9 @@ $script:LogFile = Join-Path $LogDir ("setup_cua_server_" + $RunId + ".log")Write-Log -LogFile $script:LogFile -Message "=== Installing CUA Computer Server ==="-function Resolve-ChocoPath {- $inst = [Environment]::GetEnvironmentVariable('ChocolateyInstall','Machine')- if ($inst) {- $exe = Join-Path $inst 'bin\choco.exe'- if (Test-Path $exe) { return $exe }- }- $fallback = 'C:\ProgramData\chocolatey\bin\choco.exe'- if (Test-Path $fallback) { return $fallback }- try {- $cmd = (Get-Command choco -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Source)- if ($cmd) { return $cmd }- } catch {}- return $null-}-# Ensure Chocolatey and Python 3.12 are presenttry {$ChocoExe = Resolve-ChocoPath- if (-not $ChocoExe) {- Write-Log -LogFile $script:LogFile -Message "Installing Chocolatey"- Set-ExecutionPolicy Bypass -Scope Process -Force- [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12- Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))- $ChocoExe = Resolve-ChocoPath- }if ($ChocoExe) {Write-Log -LogFile $script:LogFile -Message "Installing Python 3.12 via Chocolatey"try {diff --git a/libs/qemu-docker/windows/src/vm/setup/setup-tools.psm1 b/libs/qemu-docker/windows/src/vm/setup/setup-utils.psm1similarity index 52%rename from libs/qemu-docker/windows/src/vm/setup/setup-tools.psm1rename to libs/qemu-docker/windows/src/vm/setup/setup-utils.psm1index e784c1673a..0b5578d6df 100644--- a/libs/qemu-docker/windows/src/vm/setup/setup-tools.psm1+++ b/libs/qemu-docker/windows/src/vm/setup/setup-utils.psm1@@ -12,95 +12,33 @@ function Write-Log {Write-Host "$timestamp`t$Message"}-function Get-Tools {+function Resolve-ChocoPath {param(- [string]$toolsConfigJson+ [switch]$SkipInstall)- # Convert the JSON string to a PowerShell object- $toolsList = $toolsConfigJson | ConvertFrom-Json-- return $toolsList-}--function Get-ToolDetails {- param(- $toolsList,- [string]$toolName- )-- # Check if the program exists in the JSON data- if ($toolsList.PSObject.Properties.Name -contains $toolName) {- # Return the program details as a PowerShell object- return $toolsList.$toolName- } else {- # Handle the case where the program is not found- Write-Host "Program '$toolName' not found in the list."- return $null+ $inst = [Environment]::GetEnvironmentVariable('ChocolateyInstall','Machine')+ if ($inst) {+ $exe = Join-Path $inst 'bin\choco.exe'+ if (Test-Path $exe) { return $exe }}-}--function Invoke-DownloadFileFromAvailableMirrors {- param (- [string[]]$mirrorUrls,- [string]$outfile- )- foreach ($url in $mirrorUrls) {- try {- $result = Invoke-DownloadFile -url $url -outfile $outfile- if ($result -eq $true) {- Write-Host "Downloaded using $url"- return $true- }- } catch {- Write-Host "Error downloading from $url. Please check and update the mirrors."- }+ $fallback = 'C:\ProgramData\chocolatey\bin\choco.exe'+ if (Test-Path $fallback) { return $fallback }+ try {+ $cmd = (Get-Command choco -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Source)+ if ($cmd) { return $cmd }+ } catch {}++ if (-not $SkipInstall) {+ Write-Host "Chocolatey not found. Installing..."+ Set-ExecutionPolicy Bypass -Scope Process -Force+ [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12+ Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))++ return Resolve-ChocoPath -SkipInstall}- Write-Host "Downloading from the provided mirrors failed. Please check and update the mirrors."- return $false-}--function Invoke-DownloadFile {- param (- [string]$url,- [string]$outfile- )- # Makes download faster by disabling progress bar- $ProgressPreference = "SilentlyContinue"-- $retryCount = 0- $maxRetries = 3- $sleepSeconds = 2- $maxSleepSeconds = 10- $userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36"-- # Ensure directory exists- $directory = Split-Path -Path $outfile -Parent- if (-Not (Test-Path -Path $directory)) {- Write-Host "Creating directory $directory..."- New-Item -Path $directory -ItemType Directory -Force | Out-Null- }-- while ($retryCount -lt $maxRetries) {- try {- Invoke-RestMethod -Uri $url -OutFile $outfile -Headers @{"User-Agent" = $userAgent}- Write-Host "Download successful, file saved to: $outfile"- break- } catch {- $retryCount++- Write-Host "Attempt $retryCount of $maxRetries failed. Error: $($_.Exception.Message)"- Start-Sleep -Seconds $sleepSeconds- $sleepSeconds = [Math]::Min($sleepSeconds * 2, $maxSleepSeconds) # Exponential backoff with a cap- }- }-- if ($retryCount -eq $maxRetries) {- Write-Host "Failed to download the file after $maxRetries attempts."- return $false- }-- return $true+ return $null}function Add-ToEnvPath {@@ -116,7 +54,7 @@ function Add-ToEnvPath {# Set the updated PATH environment variable[Environment]::SetEnvironmentVariable("PATH", $newPath, "Machine")-+# Fetch updates from the shell$env:PATH += ";${newPath}"}@@ -131,7 +69,7 @@ function Register-LogonTask {[parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, HelpMessage = "Path to the .py script")][string]$ScriptPath,-+[parameter(Mandatory = $false, ValueFromPipelineByPropertyName = $true, HelpMessage = "Arguments to the .py script")][string]$Arguments = "",@@ -152,12 +90,12 @@ function Register-LogonTask {[string]$LogFilePath)-+$scriptDirectory = Split-Path $ScriptPath-- $taskActionArgument = "-ExecutionPolicy Bypass -windowstyle hidden -Command `"try { . '$ScriptPath' $Arguments } catch { Write `$_.Exception.Message | Out-File $($TaskName)_Log.txt } finally { } `""++ $taskActionArgument = "-ExecutionPolicy Bypass -windowstyle hidden -Command `"try { . '$ScriptPath' $Arguments } catch { Write `$_.Exception.Message | Out-File $($TaskName)_Log.txt } finally { } `""$taskAction = New-ScheduledTaskAction -Execute "$PSHome\powershell.exe" -Argument $taskActionArgument -WorkingDirectory $scriptDirectory-+$params = @{Force = $TrueAction = $taskActiondiff --git a/libs/qemu-docker/windows/src/vm/setup/setup.ps1 b/libs/qemu-docker/windows/src/vm/setup/setup.ps1index 252e104042..85c0aff37a 100644--- a/libs/qemu-docker/windows/src/vm/setup/setup.ps1+++ b/libs/qemu-docker/windows/src/vm/setup/setup.ps1@@ -1,402 +1,30 @@-$ErrorActionPreference = "Continue" # until downloading from mirrors is more stable+$ErrorActionPreference = "Continue"-# Section - General Setup-$shortcutShared = "C:\Users\Docker\Desktop\Setup"-$scriptFolder = "\\host.lan\Data"-$toolsFolder = "C:\Users\$env:USERNAME\Tools"+$scriptFolder = "C:\OEM"-# Load the shared setup-tools module-Import-Module (Join-Path $scriptFolder -ChildPath "setup-tools.psm1")+Import-Module (Join-Path $scriptFolder -ChildPath "setup-utils.psm1")-# Create a shortcut to the shared folder if it doesn't exist-if (-not (Test-Path $shortcutShared)) {- New-Item -ItemType SymbolicLink -Path $shortcutShared -Value $scriptFolder-}--# Check if profile exists-if (-not (Test-Path $PROFILE)) {- New-Item -ItemType File -Path $PROFILE -Force-}--# Create a folder where we store all the standalone executables-if (-not (Test-Path $toolsFolder)) {- New-Item -ItemType Directory -Path $toolsFolder -Force- $envPath = [Environment]::GetEnvironmentVariable("PATH", "Machine")- $newPath = "$envPath;$toolsFolder"- [Environment]::SetEnvironmentVariable("PATH", $newPath, "Machine")-}--# Section - Tools Installation+Set-StrictMode -Version Latest# Set TLS version to 1.2 or higher[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 -bor [Net.SecurityProtocolType]::Tls13-# Load the tools config json listing mirrors and aliases used for installing tools-$toolsConfigJsonPath = Join-Path $scriptFolder -ChildPath "tools_config.json"-$toolsConfigJson = Get-Content -Path $toolsConfigJsonPath -Raw-$toolsList = Get-Tools -toolsConfigJson $toolsConfigJson--## - Python-$pythonToolName = "Python"-$userPythonPath = "$env:LOCALAPPDATA\Programs\Python"-$pythonDetails = Get-ToolDetails -toolsList $toolsList -toolName $pythonToolName-$pythonAlias = $pythonDetails.alias--# Check for Python installation-$pythonExecutablePath = Get-ChildItem -Path $userPythonPath -Filter python.exe -Recurse -ErrorAction SilentlyContinue | Select-Object -First 1 -ExpandProperty FullName--# Force to install Python 3.10 as the pre-installed version on Windows may not work sometimes-Write-Host "Downloading Python $pythonVersion..."-$pythonInstallerFilePath = "$env:TEMP\python_installer.exe"-$downloadResult = Invoke-DownloadFileFromAvailableMirrors -mirrorUrls $pythonDetails.mirrors -outfile $pythonInstallerFilePath-if (-not $downloadResult) {- Write-Host "Failed to download Python. Please try again later or install manually."-} else {- Write-Host "Installing Python for current user..."- Start-Process -FilePath $pythonInstallerFilePath -Args "/quiet InstallAllUsers=0 PrependPath=0" -NoNewWindow -Wait- $pythonExecutablePath = "$userPythonPath\Python310\python.exe"- $setAliasExpression = "Set-Alias -Name $pythonAlias -Value `"$pythonExecutablePath`""- Add-Content -Path $PROFILE -Value $setAliasExpression- Invoke-Expression $setAliasExpression-}--## - Git-$gitToolName = "git"-$gitToolDetails = Get-ToolDetails -toolsList $toolsList -toolName $gitToolName--# Check for Git installation-try {- git --version | Out-Null- Write-Host "Git is already installed."-} catch {- Write-Host "Git is not installed. Downloading and installing Git..."- $gitInstallerFilePath = "$env:TEMP\git_installer.exe"- $downloadResult = Invoke-DownloadFileFromAvailableMirrors -mirrorUrls $gitToolDetails.mirrors -outfile $gitInstallerFilePath- if (-not $downloadResult) {- Write-Host "Failed to download Git. Please try again later or install manually."- } else {- Start-Process -FilePath $gitInstallerFilePath -Args "/VERYSILENT /NORESTART /NOCANCEL /SP-" -Wait+# Install Git via Chocolatey+$ChocoExe = Resolve-ChocoPath+if ($ChocoExe) {+ Write-Host "Installing Git via Chocolatey..."+ try {+ & $ChocoExe install -y git | Out-NullAdd-ToEnvPath -NewPath "C:\Program Files\Git\bin"-- Write-Host "Git has been installed."- }-}--# - 7zip-$7ZipToolName = "7zip"-$7ZipToolDetails = Get-ToolDetails -toolsList $toolsList -toolName $7ZipToolName-Write-Host "$7ZipToolDetails"--if (Get-Command 7z -ErrorAction SilentlyContinue) {- Write-Host "7-Zip is already installed."-}-else {- Write-Host "Installing 7-Zip..."-- $7ZipInstallerFilePath = "$env:TEMP\7_zip.exe"- Write-Host "$($7ZipToolDetails.mirrors)"- $downloadResult = Invoke-DownloadFileFromAvailableMirrors -mirrorUrls $7ZipToolDetails.mirrors -outfile $7ZipInstallerFilePath- if (-not $downloadResult) {- Write-Host "Failed to download 7-Zip. Please try again later or install manually."- } else {- Start-Process -FilePath $7ZipInstallerFilePath -Args "/S" -Verb RunAs -Wait- Remove-Item $7ZipInstallerFilePath-- # add 7z to PATH- Add-ToEnvPath -NewPath "${env:ProgramFiles}\7-Zip"- }-}--# - ffpmeg-$ffpmegToolName = "ffmpeg"-$ffpmegToolDetails = Get-ToolDetails -toolsList $toolsList -toolName $ffpmegToolName--if (Get-Command ffmpeg -ErrorAction SilentlyContinue) {- Write-Host "ffmpeg is already installed."-} else {- Write-Host "ffmpeg is not installed. Installing it."- $ffpmegInstallerFilePath = "C:\ffmpeg.7z"- $downloadResult = Invoke-DownloadFileFromAvailableMirrors -mirrorUrls $ffpmegToolDetails.mirrors -outfile $ffpmegInstallerFilePath- if (-not $downloadResult) {- Write-Host "Failed to download ffmpeg. Please try again later or install manually."- } else {- Write-Host "Extracting $ffpmegInstallerFilePath..."- 7z x -y -o"C:\" "C:\ffmpeg.7z"-- $ffmpegFolder = Get-ChildItem -Path "C:\" -Filter "ffmpeg-*" -Directory- $ffmpegFolder = -join ("C:\", $ffmpegFolder)- #remove ffmpeg folder if exists- if (Test-Path "C:\ffmpeg") {- Remove-Item -Path "C:\ffmpeg" -Recurse -Force- }- Rename-Item -Path "$ffmpegFolder" -NewName "ffmpeg"-- Write-Host "Adding ffmpeg to PATH..."- Add-ToEnvPath -NewPath "C:\ffmpeg\bin"-- Write-Host "ffmpeg is installed"- }-}--# Disable Edge Auto Updates-Stop-Process -Name "MicrosoftEdgeUpdate" -Force -ErrorAction SilentlyContinue-$edgeUpdatePath = "${env:ProgramFiles(x86)}\Microsoft\EdgeUpdate"-Remove-Item -Path $edgeUpdatePath -Recurse -Force -ErrorAction SilentlyContinue-Write-Host "Edge Update processes terminated and directory removed."--# - Google Chrome-$chromeToolName = "Google Chrome"-$chromeToolDetails = Get-ToolDetails -toolsList $toolsList -toolName $chromeToolName-$chromeExePath = "C:\Program Files\Google\Chrome\Application\chrome.exe"-$chromeAlias = $chromeToolDetails.alias--# Check if Google Chrome is already installed by its alias-if (Get-Command $chromeAlias -ErrorAction SilentlyContinue) {- Write-Host "Google Chrome is already installed."-} else {- # Download the installer to the Temp directory- $chromeInstallerFilePath = "$env:TEMP\chrome_installer.exe"- $downloadResult = Invoke-DownloadFileFromAvailableMirrors -mirrorUrls $chromeToolDetails.mirrors -outfile $chromeInstallerFilePath- if (-not $downloadResult) {- Write-Host "Failed to download Google Chrome. Please try again later or install manually."- } else {- # Execute the installer silently with elevated permissions- Start-Process -FilePath $chromeInstallerFilePath -ArgumentList "/silent", "/install" -Verb RunAs -Wait-- # Remove the installer file after installation- Remove-Item -Path $chromeInstallerFilePath-- # Set alias- $setAliasExpression = "Set-Alias -Name $chromeAlias -Value `"$chromeExePath`""- Add-Content -Path $PROFILE -Value $setAliasExpression- Invoke-Expression $setAliasExpression-- # Add Chrome to the system PATH environment variable- Add-ToEnvPath -NewPath "${env:ProgramFiles}\Google\Chrome\Application"-- # Disable Google Chrome Auto Updates- $chromeRegPath = "HKLM:\SOFTWARE\Policies\Google\Update"- if (-not (Test-Path $chromeRegPath)) {- New-Item -Path $chromeRegPath -Force- }- Set-ItemProperty -Path $chromeRegPath -Name "AutoUpdateCheckPeriodMinutes" -Value 0- Set-ItemProperty -Path $chromeRegPath -Name "UpdateDefault" -Value 0- }-}--# - LibreOffice-$libreOfficeToolName = "LibreOffice"-$libreOfficeToolDetails = Get-ToolDetails -toolsList $toolsList -toolName $libreOfficeToolName--# Check for LibreOffice installation-$installedVersion = (Get-WmiObject -Query "SELECT * FROM Win32_Product WHERE Name like 'LibreOffice%'").Version-if (-not [string]::IsNullOrWhiteSpace($installedVersion)) {- Write-Host "LibreOffice $version is already installed."-} else {- Write-Host "LibreOffice is not installed. Downloading and installing LibreOffice..."- $libreOfficeInstallerFilePath = "$env:TEMP\libreOffice_installer.exe"-- $downloadResult = Invoke-DownloadFileFromAvailableMirrors -mirrorUrls $libreOfficeToolDetails.mirrors -outfile $libreOfficeInstallerFilePath- if (-not $downloadResult) {- Write-Host "Failed to download LibreOffice. Please try again later or install manually."- } else {- Start-Process "msiexec.exe" -ArgumentList "/i `"$libreOfficeInstallerFilePath`" /quiet" -Wait -NoNewWindow- Write-Host "LibreOffice has been installed."-- # Add LibreOffice to the system PATH environment variable- Add-ToEnvPath -NewPath "C:\Program Files\LibreOffice\program"+ Write-Host "Git installed successfully."+ } catch {+ Write-Host "Git install warning: $($_.Exception.Message)"}-}--# - VLC-$vlcToolName = "VLC"-$vlcToolDetails = Get-ToolDetails -toolsList $toolsList -toolName $vlcToolName-$vlcAlias = $vlcToolDetails.alias-$vlcExecutableFilePath = "C:\Program Files\VideoLAN\VLC\vlc.exe"--# Check if VLC is already installed by checking the VLC command-if (Test-Path $vlcExecutableFilePath) {- Write-Host "VLC is already installed."-} else {- # Download the installer to the Temp directory- $vlcInstallerFilePath = "$env:TEMP\vlc_installer.exe"- $downloadResult = Invoke-DownloadFileFromAvailableMirrors -mirrorUrls $vlcToolDetails.mirrors -outfile $vlcInstallerFilePath- if (-not $downloadResult) {- Write-Host "Failed to download VLC. Please try again later or install manually."- } else {- # Execute the installer silently with elevated permissions- Start-Process -FilePath $vlcInstallerFilePath -ArgumentList "/S" -Verb RunAs -Wait-- # Remove the installer file after installation- Remove-Item -Path $vlcInstallerFilePath-- # Set alias- $setAliasExpression = "Set-Alias -Name $vlcAlias -Value `"$vlcExecutableFilePath`""- Add-Content -Path $PROFILE -Value $setAliasExpression- Invoke-Expression $setAliasExpression-- # Add VLC to the system PATH environment variable- Add-ToEnvPath -NewPath "C:\Program Files\VideoLAN\VLC"- }-}--# - GIMP-$gimpToolName = "GIMP"-$gimpToolDetails = Get-ToolDetails -toolsList $toolsList -toolName $gimpToolName-$gimpAlias = $gimpToolDetails.alias-$gimpExecutablePath = "C:\Program Files\GIMP 2\bin\gimp-2.10.exe"--# Check if GIMP is already installed by checking the GIMP executable path-if (Test-Path $gimpExecutablePath) {- Write-Host "GIMP is already installed."-} else {- # Download the installer to the Temp directory- $gimpInstallerFilePath = "$env:TEMP\gimp_installer.exe"- $downloadResult = Invoke-DownloadFileFromAvailableMirrors -mirrorUrls $gimpToolDetails.mirrors -outfile $gimpInstallerFilePath- if (-not $downloadResult) {- Write-Host "Failed to download GIMP. Please try again later or install manually."- } else {- # Execute the installer silently with elevated permissions- Start-Process -FilePath $gimpInstallerFilePath -ArgumentList "/VERYSILENT /ALLUSERS" -Verb RunAs -Wait-- # Remove the installer file after installation- Remove-Item -Path $gimpInstallerFilePath-- # Set alias- $setAliasExpression = "Set-Alias -Name $gimpAlias -Value `"$gimpExecutablePath`""- Add-Content -Path $PROFILE -Value $setAliasExpression- Invoke-Expression $setAliasExpression-- # Add GIMP to the system PATH environment variable- Add-ToEnvPath -NewPath "C:\Program Files\GIMP 2\bin"- }-}--# - VS Code-$vsCodeToolName = "VS Code"-$vsCodeToolDetails = Get-ToolDetails -toolsList $toolsList -toolName $vsCodeToolName-$vsCodeAlias = $gimpToolDetails.alias-$vsCodeExecutablePath = "C:\Users\$env:USERNAME\AppData\Local\Programs\Microsoft VS Code\Code.exe"--# Check if VS Code is already installed by checking the VS Code executable path-if (Test-Path $vsCodeExecutablePath) {- Write-Host "VS Code is already installed."-} else {- # Download the installer to the Temp directory- $vsCodeInstallerFilePath = "$env:TEMP\VSCodeSetup.exe"- $downloadResult = Invoke-DownloadFileFromAvailableMirrors -mirrorUrls $vsCodeToolDetails.mirrors -outfile $vsCodeInstallerFilePath- if (-not $downloadResult) {- Write-Host "Failed to download VS Code. Please try again later or install manually."- } else {- # Execute the installer silently with elevated permissions- Start-Process -FilePath $vsCodeInstallerFilePath -ArgumentList "/VERYSILENT", "/mergetasks=!runcode" -Verb RunAs -Wait-- # Remove the installer file after installation- Remove-Item -Path $vsCodeInstallerFilePath-- # Set alias- $setAliasExpression = "Set-Alias -Name $vsCodeAlias -Value `"$vsCodeExecutablePath`""- Add-Content -Path $PROFILE -Value $setAliasExpression- Invoke-Expression $setAliasExpression-- # Add VS Code to the system PATH environment variable- Add-ToEnvPath -NewPath "C:\Users\$env:USERNAME\AppData\Local\Programs\Microsoft VS Code\bin"-- # Disable Visual Studio Code Auto Updates- $vsCodeSettingsPath = "${env:APPDATA}\Code\User\settings.json"- if (-not (Test-Path $vsCodeSettingsPath)) {- # Create the directory if it doesn't exist- $dirPath = Split-Path -Path $vsCodeSettingsPath -Parent- if (-not (Test-Path $dirPath)) {- New-Item -ItemType Directory -Path $dirPath -Force- }- # Initialize an empty hashtable to act as the JSON object- $settingsObj = @{}- $settingsObj["update.mode"] = "none" # Set update mode to none- $settingsObj | ConvertTo-Json | Set-Content $vsCodeSettingsPath- } else {- # If the file exists, modify it- $settingsObj = Get-Content $vsCodeSettingsPath | ConvertFrom-Json- $settingsObj["update.mode"] = "none"- $settingsObj | ConvertTo-Json | Set-Content $vsCodeSettingsPath- }- }-}--# - Thunderbird-$thunderbirdToolName = "Thunderbird"-$thunderbirdToolDetails = Get-ToolDetails -toolsList $toolsList -toolName $thunderbirdToolName-$thunderbirdAlias = $thunderbirdToolDetails.alias-$thunderbirdExecutablePath = "C:\Program Files\Mozilla Thunderbird\thunderbird.exe"--# Check if Thunderbird is already installed by checking the Thunderbird executable path-if (Test-Path $thunderbirdExecutablePath) {- Write-Host "Thunderbird is already installed."-} else {- # Download the installer to the Temp directory- $thunderbirdInstallerFilePath = "$env:TEMP\ThunderbirdSetup.exe"- $downloadResult = Invoke-DownloadFileFromAvailableMirrors -mirrorUrls $thunderbirdToolDetails.mirrors -outfile $thunderbirdInstallerFilePath- if (-not $downloadResult) {- Write-Host "Failed to download Thunderbird. Please try again later or install manually."- } else {- # Execute the installer silently with elevated permissions- Start-Process -FilePath $thunderbirdInstallerFilePath -ArgumentList "/S" -Verb RunAs -Wait-- # Remove the installer file after installation- Remove-Item -Path $thunderbirdInstallerFilePath-- # Set alias- $setAliasExpression = "Set-Alias -Name $thunderbirdAlias -Value `"$thunderbirdExecutablePath`""- Add-Content -Path $PROFILE -Value $setAliasExpression- Invoke-Expression $setAliasExpression-- # Add Thunderbird to the system PATH environment variable- Add-ToEnvPath -NewPath "C:\Program Files\Mozilla Thunderbird"- }-}--# - Caddy Proxy-$caddyProxyToolName = "Caddy Proxy"-$caddyProxyToolDetails = Get-ToolDetails -toolsList $toolsList -toolName $caddyProxyToolName-$caddyProxyAlias = $caddyProxyToolDetails.alias-$caddyProxyExecutablePath = "C:\Users\$env:USERNAME\caddy_windows_amd64.exe"--# Check if Caddy is already installed by checking the Caddy executable path-if (Test-Path $caddyProxyExecutablePath) {- Write-Host "Caddy Server is already installed."} else {- # Download the installer to the Temp directory- $downloadResult = Invoke-DownloadFileFromAvailableMirrors -mirrorUrls $caddyProxyToolDetails.mirrors -outfile $caddyProxyExecutablePath- if (-not $downloadResult) {- Write-Host "Failed to download Caddy Proxy. Please try again later or install manually."- } else {- # Set alias- $setAliasExpression = "Set-Alias -Name $caddyProxyAlias -Value `"$caddyProxyExecutablePath`""- Add-Content -Path $PROFILE -Value $setAliasExpression- Invoke-Expression $setAliasExpression- }+ Write-Host "Chocolatey not available; skipping Git install"}-# - Caddy Reverse Proxy Setup-Write-Host "Setting up Caddy Reverse Proxy..."-$caddySetupScript = Join-Path $scriptFolder -ChildPath "setup-caddy-proxy.ps1"-if (Test-Path $caddySetupScript) {- & $caddySetupScript- Write-Host "Caddy Reverse Proxy setup completed."-} else {- Write-Host "ERROR: setup-caddy-proxy.ps1 not found at $caddySetupScript"-}--# Add a firewall rule for Caddy Proxy if needed-$caddyProxyRuleName = "Allow-Caddy-Proxy"-if (-not (Get-NetFirewallRule -Name $caddyProxyRuleName -ErrorAction SilentlyContinue)) {- New-NetFirewallRule -DisplayName $caddyProxyRuleName -Direction Inbound -Program $caddyProxyExecutablePath -Action Allow -Profile Any- Write-Host "Firewall rule added to allow traffic for $caddyProxyRuleName"-} else {- Write-Host "Firewall rule already exists. $caddyProxyRuleName"-}--# - CUA Computer Server Setup+# CUA Computer Server SetupWrite-Host "Setting up CUA Computer Server..."$cuaServerSetupScript = Join-Path $scriptFolder -ChildPath "setup-cua-server.ps1"if (Test-Path $cuaServerSetupScript) {@@ -406,7 +34,7 @@ if (Test-Path $cuaServerSetupScript) {Write-Host "ERROR: setup-cua-server.ps1 not found at $cuaServerSetupScript"}-# Register on-logon task (required for base image shutdown detection)+# Register on-logon task$onLogonTaskName = "WindowsArena_OnLogon"$onLogonScriptPath = "$scriptFolder\on-logon.ps1"if (Get-ScheduledTask -TaskName $onLogonTaskName -ErrorAction SilentlyContinue) {@@ -417,7 +45,5 @@ if (Get-ScheduledTask -TaskName $onLogonTaskName -ErrorAction SilentlyContinue)}Start-Sleep -Seconds 10--# Start the on-logon task asynchronously (non-blocking) so setup can completeWrite-Host "Starting $onLogonTaskName task in background..."-Start-Process -WindowStyle Hidden -FilePath "powershell.exe" -ArgumentList "-Command", "Start-ScheduledTask -TaskName '$onLogonTaskName'"+Start-Process -WindowStyle Hidden -FilePath "powershell.exe" -ArgumentList "-Command", "Start-ScheduledTask -TaskName '$onLogonTaskName'"\ No newline at end of filediff --git a/libs/qemu-docker/windows/src/vm/setup/tools_config.json b/libs/qemu-docker/windows/src/vm/setup/tools_config.jsondeleted file mode 100644index 2cc07c2c73..0000000000--- a/libs/qemu-docker/windows/src/vm/setup/tools_config.json+++ /dev/null@@ -1,59 +0,0 @@-{- "Python": {- "mirrors": ["https://www.python.org/ftp/python/3.10.0/python-3.10.0-amd64.exe"],- "alias": "python"- },- "git": {- "mirrors": [- "https://github.com/git-for-windows/git/releases/download/v2.37.1.windows.1/Git-2.37.1-64-bit.exe"- ]- },- "7zip": {- "mirrors": ["https://www.7-zip.org/a/7z2407-x64.exe"]- },- "ffmpeg": {- "mirrors": ["https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.7z"]- },- "Google Chrome": {- "mirrors": ["https://dl.google.com/chrome/install/latest/chrome_installer.exe"],- "alias": "google-chrome"- },- "LibreOffice": {- "mirrors": [- "https://mirror.raiolanetworks.com/tdf/libreoffice/stable/24.8.2/win/x86_64/LibreOffice_24.8.2_Win_x86-64.msi",- "https://mirrors.iu13.net/tdf/libreoffice/stable/24.8.2/win/x86_64/LibreOffice_24.8.2_Win_x86-64.msi",- "https://download.documentfoundation.org/libreoffice/stable/24.8.2/win/x86_64/LibreOffice_24.8.2_Win_x86-64.msi"- ]- },- "VLC": {- "mirrors": [- "https://ftp.free.org/mirrors/videolan/vlc/3.0.21/win64/vlc-3.0.21-win64.exe",- "https://mirror.fcix.net/videolan-ftp/vlc/3.0.21/win64/vlc-3.0.21-win64.exe",- "https://mirror.raiolanetworks.com/videolan/vlc/3.0.21/win64/vlc-3.0.21-win64.exe"- ],- "alias": "vlc"- },- "GIMP": {- "mirrors": [- "https://www-ftp.lip6.fr/pub/gimp/gimp/v2.10/windows/gimp-2.10.38-setup.exe",- "https://download.gimp.org/gimp/v2.10/windows/gimp-2.10.38-setup.exe",- "https://www-ftp.lip6.fr/pub/gimp/gimp/v2.10/windows/gimp-2.10.0-setup.exe"- ],- "alias": "gimp"- },- "VS Code": {- "mirrors": ["https://update.code.visualstudio.com/latest/win32-x64-user/stable"],- "alias": "code"- },- "Thunderbird": {- "mirrors": [- "https://download-installer.cdn.mozilla.net/pub/thunderbird/releases/115.12.1/win64/en-US/Thunderbird%20Setup%20115.12.1.exe",- "https://archive.mozilla.org/pub/thunderbird/releases/115.12.1/win64/en-US/Thunderbird%20Setup%20115.12.1.exe"- ],- "alias": "thunderbird"- },- "Caddy Proxy": {- "mirrors": ["https://caddyserver.com/api/download?os=windows&arch=amd64"],- "alias": "caddy"- }-}diff --git a/libs/qemu-docker/windows/src/vm/unattend-files/azure_win11x64-enterprise-eval.xml b/libs/qemu-docker/windows/src/vm/unattend-files/azure_win11x64-enterprise-eval.xmldeleted file mode 100644index a234f8a027..0000000000--- a/libs/qemu-docker/windows/src/vm/unattend-files/azure_win11x64-enterprise-eval.xml+++ /dev/null@@ -1,467 +0,0 @@-<?xml version="1.0" encoding="UTF-8"?>-<unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">- <settings pass="windowsPE">- <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <SetupUILanguage>- <UILanguage>en-US</UILanguage>- </SetupUILanguage>- <InputLocale>0409:00000409</InputLocale>- <SystemLocale>en-US</SystemLocale>- <UILanguage>en-US</UILanguage>- <UserLocale>en-US</UserLocale>- </component>- <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <DiskConfiguration>- <Disk wcm:action="add">- <DiskID>0</DiskID>- <WillWipeDisk>true</WillWipeDisk>- <CreatePartitions>- <!-- System partition (ESP) -->- <CreatePartition wcm:action="add">- <Order>1</Order>- <Type>EFI</Type>- <Size>128</Size>- </CreatePartition>- <!-- Microsoft reserved partition (MSR) -->- <CreatePartition wcm:action="add">- <Order>2</Order>- <Type>MSR</Type>- <Size>128</Size>- </CreatePartition>- <!-- Windows partition -->- <CreatePartition wcm:action="add">- <Order>3</Order>- <Type>Primary</Type>- <Extend>true</Extend>- </CreatePartition>- </CreatePartitions>- <ModifyPartitions>- <!-- System partition (ESP) -->- <ModifyPartition wcm:action="add">- <Order>1</Order>- <PartitionID>1</PartitionID>- <Label>System</Label>- <Format>FAT32</Format>- </ModifyPartition>- <!-- MSR partition does not need to be modified -->- <ModifyPartition wcm:action="add">- <Order>2</Order>- <PartitionID>2</PartitionID>- </ModifyPartition>- <!-- Windows partition -->- <ModifyPartition wcm:action="add">- <Order>3</Order>- <PartitionID>3</PartitionID>- <Label>Windows</Label>- <Letter>C</Letter>- <Format>NTFS</Format>- </ModifyPartition>- </ModifyPartitions>- </Disk>- </DiskConfiguration>- <ImageInstall>- <OSImage>- <InstallTo>- <DiskID>0</DiskID>- <PartitionID>3</PartitionID>- </InstallTo>- <InstallToAvailablePartition>false</InstallToAvailablePartition>- </OSImage>- </ImageInstall>- <DynamicUpdate>- <Enable>true</Enable>- <WillShowUI>Never</WillShowUI>- </DynamicUpdate>- <UpgradeData>- <Upgrade>false</Upgrade>- <WillShowUI>Never</WillShowUI>- </UpgradeData>- <UserData>- <AcceptEula>true</AcceptEula>- <FullName>Docker</FullName>- <Organization>Windows for Docker</Organization>- </UserData>- <EnableFirewall>false</EnableFirewall>- <Diagnostics>- <OptIn>false</OptIn>- </Diagnostics>- <RunSynchronous>- <RunSynchronousCommand wcm:action="add">- <Order>1</Order>- <Path>reg.exe add "HKLM\SYSTEM\Setup\LabConfig" /v BypassTPMCheck /t REG_DWORD /d 1 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>2</Order>- <Path>reg.exe add "HKLM\SYSTEM\Setup\LabConfig" /v BypassSecureBootCheck /t REG_DWORD /d 1 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>3</Order>- <Path>reg.exe add "HKLM\SYSTEM\Setup\LabConfig" /v BypassRAMCheck /t REG_DWORD /d 1 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>4</Order>- <Path>reg.exe add "HKLM\SYSTEM\Setup\MoSetup" /v AllowUpgradesWithUnsupportedTPMOrCPU /t REG_DWORD /d 1 /f</Path>- </RunSynchronousCommand>- </RunSynchronous>- </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="generalize">- <component name="Microsoft-Windows-PnPSysprep" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>- </component>- <component name="Microsoft-Windows-Security-SPP" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <SkipRearm>1</SkipRearm>- </component>- </settings>- <settings pass="specialize">- <component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <SkipAutoActivation>true</SkipAutoActivation>- </component>- <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <ComputerName>*</ComputerName>- <OEMInformation>- <Manufacturer>Dockur</Manufacturer>- <Model>Windows for Docker</Model>- <SupportHours>24/7</SupportHours>- <SupportPhone />- <SupportProvider>Dockur</SupportProvider>- <SupportURL>https://github.com/dockur/windows/issues</SupportURL>- </OEMInformation>- <OEMName>Windows for Docker</OEMName>- </component>- <component name="Microsoft-Windows-ErrorReportingCore" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <DisableWER>1</DisableWER>- </component>- <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <DisableAccelerators>true</DisableAccelerators>- <DisableFirstRunWizard>true</DisableFirstRunWizard>- <Home_Page>https://google.com</Home_Page>- <Help_Page>about:blank</Help_Page>- </component>- <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="wow64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <DisableAccelerators>true</DisableAccelerators>- <DisableFirstRunWizard>true</DisableFirstRunWizard>- <Home_Page>https://google.com</Home_Page>- <Help_Page>about:blank</Help_Page>- </component>- <component name="Microsoft-Windows-SQMApi" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <CEIPEnabled>0</CEIPEnabled>- </component>- <component name="Microsoft-Windows-SystemRestore-Main" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <DisableSR>1</DisableSR>- </component>- <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <InputLocale>0409:00000409</InputLocale>- <SystemLocale>en-US</SystemLocale>- <UILanguage>en-US</UILanguage>- <UserLocale>en-US</UserLocale>- </component>- <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <RunSynchronous>- <RunSynchronousCommand wcm:action="add">- <Order>1</Order>- <Path>reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE" /v BypassNRO /t REG_DWORD /d 1 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>2</Order>- <Path>reg.exe load "HKU\mount" "C:\Users\Default\NTUSER.DAT"</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>3</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "ContentDeliveryAllowed" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>4</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "FeatureManagementEnabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>5</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "OEMPreInstalledAppsEnabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>6</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "PreInstalledAppsEnabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>7</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "PreInstalledAppsEverEnabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>8</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SilentInstalledAppsEnabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>9</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SoftLandingEnabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>10</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContentEnabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>11</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-310093Enabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>12</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338387Enabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>13</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338388Enabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>14</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338389Enabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>15</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338393Enabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>16</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-353698Enabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>17</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SystemPaneSuggestionsEnabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>18</Order>- <Path>reg.exe add "HKU\mount\Software\Policies\Microsoft\Windows\CloudContent" /v "DisableCloudOptimizedContent" /t REG_DWORD /d 1 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>19</Order>- <Path>reg.exe add "HKU\mount\Software\Policies\Microsoft\Windows\CloudContent" /v "DisableWindowsConsumerFeatures" /t REG_DWORD /d 1 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>20</Order>- <Path>reg.exe add "HKU\mount\Software\Policies\Microsoft\Windows\CloudContent" /v "DisableConsumerAccountStateContent" /t REG_DWORD /d 1 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>21</Order>- <Path>reg.exe unload "HKU\mount"</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>22</Order>- <Path>reg.exe add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v "DisableCloudOptimizedContent" /t REG_DWORD /d 1 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>23</Order>- <Path>reg.exe add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v "DisableWindowsConsumerFeatures" /t REG_DWORD /d 1 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>24</Order>- <Path>reg.exe add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v "DisableConsumerAccountStateContent" /t REG_DWORD /d 1 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>25</Order>- <Path>reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\NetworkList\Signatures\FirstNetwork" /v Category /t REG_DWORD /d 1 /f</Path>- <Description>Set Network Location to Home</Description>- </RunSynchronousCommand>- </RunSynchronous>- </component>- <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <fDenyTSConnections>false</fDenyTSConnections>- </component>- <component name="Microsoft-Windows-TerminalServices-RDP-WinStationExtensions" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <UserAuthentication>0</UserAuthentication>- </component>- <component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <FirewallGroups>- <FirewallGroup wcm:action="add" wcm:keyValue="RemoteDesktop">- <Active>true</Active>- <Profile>all</Profile>- <Group>@FirewallAPI.dll,-28752</Group>- </FirewallGroup>- </FirewallGroups>- </component>- </settings>- <settings pass="auditSystem" />- <settings pass="auditUser" />- <settings pass="oobeSystem">- <component name="Microsoft-Windows-SecureStartup-FilterDriver" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <PreventDeviceEncryption>true</PreventDeviceEncryption>- </component>- <component name="Microsoft-Windows-EnhancedStorage-Adm" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <TCGSecurityActivationDisabled>1</TCGSecurityActivationDisabled>- </component>- <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <UserAccounts>- <LocalAccounts>- <LocalAccount wcm:action="add">- <Name>Docker</Name>- <Group>Administrators</Group>- <Password>- <Value />- <PlainText>true</PlainText>- </Password>- </LocalAccount>- </LocalAccounts>- <AdministratorPassword>- <Value>password</Value>- <PlainText>true</PlainText>- </AdministratorPassword>- </UserAccounts>- <AutoLogon>- <Username>Docker</Username>- <Enabled>true</Enabled>- <LogonCount>65432</LogonCount>- <Password>- <Value />- <PlainText>true</PlainText>- </Password>- </AutoLogon>- <Display>- <ColorDepth>32</ColorDepth>- <HorizontalResolution>1920</HorizontalResolution>- <VerticalResolution>1080</VerticalResolution>- </Display>- <OOBE>- <HideEULAPage>true</HideEULAPage>- <HideLocalAccountScreen>true</HideLocalAccountScreen>- <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>- <HideOnlineAccountScreens>true</HideOnlineAccountScreens>- <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>- <NetworkLocation>Home</NetworkLocation>- <ProtectYourPC>3</ProtectYourPC>- <SkipUserOOBE>true</SkipUserOOBE>- <SkipMachineOOBE>true</SkipMachineOOBE>- </OOBE>- <RegisteredOrganization>Dockur</RegisteredOrganization>- <RegisteredOwner>Windows for Docker</RegisteredOwner>- <FirstLogonCommands>- <SynchronousCommand wcm:action="add">- <Order>1</Order>- <CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v "AllowInsecureGuestAuth" /t REG_DWORD /d 1 /f</CommandLine>- <Description>Allow guest access to network shares</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>2</Order>- <CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v "RequireSecuritySignature" /t REG_DWORD /d 0 /f</CommandLine>- <Description>Disable SMB signing requirement</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>3</Order>- <CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v LimitBlankPasswordUse /t REG_DWORD /d 0 /f</CommandLine>- <Description>Allow RDP login with blank password</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>4</Order>- <CommandLine>reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device" /v "DevicePasswordLessBuildVersion" /t REG_DWORD /d 0 /f</CommandLine>- <Description>Enable option for passwordless sign-in</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>5</Order>- <CommandLine>cmd /C wmic useraccount where name="Docker" set PasswordExpires=false</CommandLine>- <Description>Password Never Expires</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>6</Order>- <CommandLine>cmd /C POWERCFG -H OFF</CommandLine>- <Description>Disable Hibernation</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>7</Order>- <CommandLine>cmd /C POWERCFG -X -monitor-timeout-ac 0</CommandLine>- <Description>Disable monitor blanking</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>8</Order>- <CommandLine>reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HideFirstRunExperience" /t REG_DWORD /d 1 /f</CommandLine>- <Description>Disable first-run experience in Edge</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>9</Order>- <CommandLine>reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f</CommandLine>- <Description>Show file extensions in Explorer</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>10</Order>- <CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateFileSizePercent" /t REG_DWORD /d 0 /f</CommandLine>- <Description>Zero Hibernation File</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>11</Order>- <CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateEnabled" /t REG_DWORD /d 0 /f</CommandLine>- <Description>Disable Hibernation</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>12</Order>- <CommandLine>cmd /C POWERCFG -X -standby-timeout-ac 0</CommandLine>- <Description>Disable Sleep</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>13</Order>- <CommandLine>reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "fAllowUnlistedRemotePrograms" /t REG_DWORD /d 1 /f</CommandLine>- <Description>Enable RemoteAPP to launch unlisted programs</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>14</Order>- <CommandLine>reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowTaskViewButton" /t REG_DWORD /d 0 /f</CommandLine>- <Description>Remove Task View from the Taskbar</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>15</Order>- <CommandLine>reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarDa" /t REG_DWORD /d 0 /f</CommandLine>- <Description>Remove Widgets from the Taskbar</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>16</Order>- <CommandLine>reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarMn" /t REG_DWORD /d 0 /f</CommandLine>- <Description>Remove Chat from the Taskbar</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>17</Order>- <CommandLine>reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "NoAutoUpdate" /t REG_DWORD /d 1 /f</CommandLine>- <Description>Turn off Windows Update auto download</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>18</Order>- <CommandLine>netsh advfirewall firewall set rule group="@FirewallAPI.dll,-32752" new enable=Yes</CommandLine>- <Description>Enable Network Discovery</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>19</Order>- <CommandLine>netsh advfirewall firewall set rule group="@FirewallAPI.dll,-28502" new enable=Yes</CommandLine>- <Description>Enable File Sharing</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>20</Order>- <CommandLine>reg.exe add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v SV1 /d 0 /t REG_DWORD /f</CommandLine>- <Description>Disable unsupported hardware notifications</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>21</Order>- <CommandLine>reg.exe add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v SV2 /d 0 /t REG_DWORD /f</CommandLine>- <Description>Disable unsupported hardware notifications</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>22</Order>- <CommandLine>pnputil -i -a C:\Windows\Drivers\viogpudo\viogpudo.inf</CommandLine>- <Description>Install VirtIO display driver</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>23</Order>- <CommandLine>cmd /C rd /q C:\Windows.old</CommandLine>- <Description>Remove empty Windows.old folder</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>24</Order>- <CommandLine>cmd /C if exist "C:\oem\install.bat" start "Install" "cmd /C C:\oem\install.bat"</CommandLine>- <Description>Execute custom script from the OEM folder if exists</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>25</Order>- <CommandLine>cmd /C "echo. > C:\Users\Docker\Desktop\hello.txt"</CommandLine>- <Description>Create an empty text file on the desktop</Description>- </SynchronousCommand>- </FirstLogonCommands>- </component>- </settings>-</unattend>\ No newline at end of filediff --git a/libs/qemu-docker/windows/src/vm/unattend-files/dev_win11x64-enterprise-eval.xml b/libs/qemu-docker/windows/src/vm/unattend-files/dev_win11x64-enterprise-eval.xmldeleted file mode 100644index 65d9f9953c..0000000000--- a/libs/qemu-docker/windows/src/vm/unattend-files/dev_win11x64-enterprise-eval.xml+++ /dev/null@@ -1,467 +0,0 @@-<?xml version="1.0" encoding="UTF-8"?>-<unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">- <settings pass="windowsPE">- <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <SetupUILanguage>- <UILanguage>en-US</UILanguage>- </SetupUILanguage>- <InputLocale>0409:00000409</InputLocale>- <SystemLocale>en-US</SystemLocale>- <UILanguage>en-US</UILanguage>- <UserLocale>en-US</UserLocale>- </component>- <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <DiskConfiguration>- <Disk wcm:action="add">- <DiskID>0</DiskID>- <WillWipeDisk>true</WillWipeDisk>- <CreatePartitions>- <!-- System partition (ESP) -->- <CreatePartition wcm:action="add">- <Order>1</Order>- <Type>EFI</Type>- <Size>128</Size>- </CreatePartition>- <!-- Microsoft reserved partition (MSR) -->- <CreatePartition wcm:action="add">- <Order>2</Order>- <Type>MSR</Type>- <Size>128</Size>- </CreatePartition>- <!-- Windows partition -->- <CreatePartition wcm:action="add">- <Order>3</Order>- <Type>Primary</Type>- <Extend>true</Extend>- </CreatePartition>- </CreatePartitions>- <ModifyPartitions>- <!-- System partition (ESP) -->- <ModifyPartition wcm:action="add">- <Order>1</Order>- <PartitionID>1</PartitionID>- <Label>System</Label>- <Format>FAT32</Format>- </ModifyPartition>- <!-- MSR partition does not need to be modified -->- <ModifyPartition wcm:action="add">- <Order>2</Order>- <PartitionID>2</PartitionID>- </ModifyPartition>- <!-- Windows partition -->- <ModifyPartition wcm:action="add">- <Order>3</Order>- <PartitionID>3</PartitionID>- <Label>Windows</Label>- <Letter>C</Letter>- <Format>NTFS</Format>- </ModifyPartition>- </ModifyPartitions>- </Disk>- </DiskConfiguration>- <ImageInstall>- <OSImage>- <InstallTo>- <DiskID>0</DiskID>- <PartitionID>3</PartitionID>- </InstallTo>- <InstallToAvailablePartition>false</InstallToAvailablePartition>- </OSImage>- </ImageInstall>- <DynamicUpdate>- <Enable>true</Enable>- <WillShowUI>Never</WillShowUI>- </DynamicUpdate>- <UpgradeData>- <Upgrade>false</Upgrade>- <WillShowUI>Never</WillShowUI>- </UpgradeData>- <UserData>- <AcceptEula>true</AcceptEula>- <FullName>Docker</FullName>- <Organization>Windows for Docker</Organization>- </UserData>- <EnableFirewall>false</EnableFirewall>- <Diagnostics>- <OptIn>false</OptIn>- </Diagnostics>- <RunSynchronous>- <RunSynchronousCommand wcm:action="add">- <Order>1</Order>- <Path>reg.exe add "HKLM\SYSTEM\Setup\LabConfig" /v BypassTPMCheck /t REG_DWORD /d 1 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>2</Order>- <Path>reg.exe add "HKLM\SYSTEM\Setup\LabConfig" /v BypassSecureBootCheck /t REG_DWORD /d 1 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>3</Order>- <Path>reg.exe add "HKLM\SYSTEM\Setup\LabConfig" /v BypassRAMCheck /t REG_DWORD /d 1 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>4</Order>- <Path>reg.exe add "HKLM\SYSTEM\Setup\MoSetup" /v AllowUpgradesWithUnsupportedTPMOrCPU /t REG_DWORD /d 1 /f</Path>- </RunSynchronousCommand>- </RunSynchronous>- </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="generalize">- <component name="Microsoft-Windows-PnPSysprep" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>- </component>- <component name="Microsoft-Windows-Security-SPP" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <SkipRearm>1</SkipRearm>- </component>- </settings>- <settings pass="specialize">- <component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <SkipAutoActivation>true</SkipAutoActivation>- </component>- <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <ComputerName>*</ComputerName>- <OEMInformation>- <Manufacturer>Dockur</Manufacturer>- <Model>Windows for Docker</Model>- <SupportHours>24/7</SupportHours>- <SupportPhone />- <SupportProvider>Dockur</SupportProvider>- <SupportURL>https://github.com/dockur/windows/issues</SupportURL>- </OEMInformation>- <OEMName>Windows for Docker</OEMName>- </component>- <component name="Microsoft-Windows-ErrorReportingCore" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <DisableWER>1</DisableWER>- </component>- <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <DisableAccelerators>true</DisableAccelerators>- <DisableFirstRunWizard>true</DisableFirstRunWizard>- <Home_Page>https://google.com</Home_Page>- <Help_Page>about:blank</Help_Page>- </component>- <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="wow64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <DisableAccelerators>true</DisableAccelerators>- <DisableFirstRunWizard>true</DisableFirstRunWizard>- <Home_Page>https://google.com</Home_Page>- <Help_Page>about:blank</Help_Page>- </component>- <component name="Microsoft-Windows-SQMApi" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <CEIPEnabled>0</CEIPEnabled>- </component>- <component name="Microsoft-Windows-SystemRestore-Main" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <DisableSR>1</DisableSR>- </component>- <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <InputLocale>0409:00000409</InputLocale>- <SystemLocale>en-US</SystemLocale>- <UILanguage>en-US</UILanguage>- <UserLocale>en-US</UserLocale>- </component>- <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <RunSynchronous>- <RunSynchronousCommand wcm:action="add">- <Order>1</Order>- <Path>reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE" /v BypassNRO /t REG_DWORD /d 1 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>2</Order>- <Path>reg.exe load "HKU\mount" "C:\Users\Default\NTUSER.DAT"</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>3</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "ContentDeliveryAllowed" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>4</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "FeatureManagementEnabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>5</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "OEMPreInstalledAppsEnabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>6</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "PreInstalledAppsEnabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>7</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "PreInstalledAppsEverEnabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>8</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SilentInstalledAppsEnabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>9</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SoftLandingEnabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>10</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContentEnabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>11</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-310093Enabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>12</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338387Enabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>13</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338388Enabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>14</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338389Enabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>15</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338393Enabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>16</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-353698Enabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>17</Order>- <Path>reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SystemPaneSuggestionsEnabled" /t REG_DWORD /d 0 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>18</Order>- <Path>reg.exe add "HKU\mount\Software\Policies\Microsoft\Windows\CloudContent" /v "DisableCloudOptimizedContent" /t REG_DWORD /d 1 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>19</Order>- <Path>reg.exe add "HKU\mount\Software\Policies\Microsoft\Windows\CloudContent" /v "DisableWindowsConsumerFeatures" /t REG_DWORD /d 1 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>20</Order>- <Path>reg.exe add "HKU\mount\Software\Policies\Microsoft\Windows\CloudContent" /v "DisableConsumerAccountStateContent" /t REG_DWORD /d 1 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>21</Order>- <Path>reg.exe unload "HKU\mount"</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>22</Order>- <Path>reg.exe add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v "DisableCloudOptimizedContent" /t REG_DWORD /d 1 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>23</Order>- <Path>reg.exe add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v "DisableWindowsConsumerFeatures" /t REG_DWORD /d 1 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>24</Order>- <Path>reg.exe add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v "DisableConsumerAccountStateContent" /t REG_DWORD /d 1 /f</Path>- </RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add">- <Order>25</Order>- <Path>reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\NetworkList\Signatures\FirstNetwork" /v Category /t REG_DWORD /d 1 /f</Path>- <Description>Set Network Location to Home</Description>- </RunSynchronousCommand>- </RunSynchronous>- </component>- <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <fDenyTSConnections>false</fDenyTSConnections>- </component>- <component name="Microsoft-Windows-TerminalServices-RDP-WinStationExtensions" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <UserAuthentication>0</UserAuthentication>- </component>- <component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <FirewallGroups>- <FirewallGroup wcm:action="add" wcm:keyValue="RemoteDesktop">- <Active>true</Active>- <Profile>all</Profile>- <Group>@FirewallAPI.dll,-28752</Group>- </FirewallGroup>- </FirewallGroups>- </component>- </settings>- <settings pass="auditSystem" />- <settings pass="auditUser" />- <settings pass="oobeSystem">- <component name="Microsoft-Windows-SecureStartup-FilterDriver" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <PreventDeviceEncryption>true</PreventDeviceEncryption>- </component>- <component name="Microsoft-Windows-EnhancedStorage-Adm" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <TCGSecurityActivationDisabled>1</TCGSecurityActivationDisabled>- </component>- <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">- <UserAccounts>- <LocalAccounts>- <LocalAccount wcm:action="add">- <Name>Docker</Name>- <Group>Administrators</Group>- <Password>- <Value />- <PlainText>true</PlainText>- </Password>- </LocalAccount>- </LocalAccounts>- <AdministratorPassword>- <Value>password</Value>- <PlainText>true</PlainText>- </AdministratorPassword>- </UserAccounts>- <AutoLogon>- <Username>Docker</Username>- <Enabled>true</Enabled>- <LogonCount>65432</LogonCount>- <Password>- <Value />- <PlainText>true</PlainText>- </Password>- </AutoLogon>- <Display>- <ColorDepth>32</ColorDepth>- <HorizontalResolution>1920</HorizontalResolution>- <VerticalResolution>1080</VerticalResolution>- </Display>- <OOBE>- <HideEULAPage>true</HideEULAPage>- <HideLocalAccountScreen>true</HideLocalAccountScreen>- <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>- <HideOnlineAccountScreens>true</HideOnlineAccountScreens>- <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>- <NetworkLocation>Home</NetworkLocation>- <ProtectYourPC>3</ProtectYourPC>- <SkipUserOOBE>true</SkipUserOOBE>- <SkipMachineOOBE>true</SkipMachineOOBE>- </OOBE>- <RegisteredOrganization>Dockur</RegisteredOrganization>- <RegisteredOwner>Windows for Docker</RegisteredOwner>- <FirstLogonCommands>- <SynchronousCommand wcm:action="add">- <Order>1</Order>- <CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v "AllowInsecureGuestAuth" /t REG_DWORD /d 1 /f</CommandLine>- <Description>Allow guest access to network shares</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>2</Order>- <CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v "RequireSecuritySignature" /t REG_DWORD /d 0 /f</CommandLine>- <Description>Disable SMB signing requirement</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>3</Order>- <CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v LimitBlankPasswordUse /t REG_DWORD /d 0 /f</CommandLine>- <Description>Allow RDP login with blank password</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>4</Order>- <CommandLine>reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device" /v "DevicePasswordLessBuildVersion" /t REG_DWORD /d 0 /f</CommandLine>- <Description>Enable option for passwordless sign-in</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>5</Order>- <CommandLine>cmd /C wmic useraccount where name="Docker" set PasswordExpires=false</CommandLine>- <Description>Password Never Expires</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>6</Order>- <CommandLine>cmd /C POWERCFG -H OFF</CommandLine>- <Description>Disable Hibernation</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>7</Order>- <CommandLine>cmd /C POWERCFG -X -monitor-timeout-ac 0</CommandLine>- <Description>Disable monitor blanking</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>8</Order>- <CommandLine>reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HideFirstRunExperience" /t REG_DWORD /d 1 /f</CommandLine>- <Description>Disable first-run experience in Edge</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>9</Order>- <CommandLine>reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f</CommandLine>- <Description>Show file extensions in Explorer</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>10</Order>- <CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateFileSizePercent" /t REG_DWORD /d 0 /f</CommandLine>- <Description>Zero Hibernation File</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>11</Order>- <CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateEnabled" /t REG_DWORD /d 0 /f</CommandLine>- <Description>Disable Hibernation</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>12</Order>- <CommandLine>cmd /C POWERCFG -X -standby-timeout-ac 0</CommandLine>- <Description>Disable Sleep</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>13</Order>- <CommandLine>reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "fAllowUnlistedRemotePrograms" /t REG_DWORD /d 1 /f</CommandLine>- <Description>Enable RemoteAPP to launch unlisted programs</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>14</Order>- <CommandLine>reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowTaskViewButton" /t REG_DWORD /d 0 /f</CommandLine>- <Description>Remove Task View from the Taskbar</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>15</Order>- <CommandLine>reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarDa" /t REG_DWORD /d 0 /f</CommandLine>- <Description>Remove Widgets from the Taskbar</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>16</Order>- <CommandLine>reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarMn" /t REG_DWORD /d 0 /f</CommandLine>- <Description>Remove Chat from the Taskbar</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>17</Order>- <CommandLine>reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "NoAutoUpdate" /t REG_DWORD /d 1 /f</CommandLine>- <Description>Turn off Windows Update auto download</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>18</Order>- <CommandLine>netsh advfirewall firewall set rule group="@FirewallAPI.dll,-32752" new enable=Yes</CommandLine>- <Description>Enable Network Discovery</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>19</Order>- <CommandLine>netsh advfirewall firewall set rule group="@FirewallAPI.dll,-28502" new enable=Yes</CommandLine>- <Description>Enable File Sharing</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>20</Order>- <CommandLine>reg.exe add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v SV1 /d 0 /t REG_DWORD /f</CommandLine>- <Description>Disable unsupported hardware notifications</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>21</Order>- <CommandLine>reg.exe add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v SV2 /d 0 /t REG_DWORD /f</CommandLine>- <Description>Disable unsupported hardware notifications</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>22</Order>- <CommandLine>pnputil -i -a C:\Windows\Drivers\viogpudo\viogpudo.inf</CommandLine>- <Description>Install VirtIO display driver</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>23</Order>- <CommandLine>cmd /C rd /q C:\Windows.old</CommandLine>- <Description>Remove empty Windows.old folder</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>24</Order>- <CommandLine>cmd /C if exist "\\host.lan\Data\install.bat" start "Install" "cmd /C \\host.lan\Data\install.bat"</CommandLine>- <Description>Execute custom script from the Shared folder if exists</Description>- </SynchronousCommand>- <SynchronousCommand wcm:action="add">- <Order>25</Order>- <CommandLine>cmd /C "echo. > C:\Users\Docker\Desktop\hello.txt"</CommandLine>- <Description>Create an empty text file on the desktop</Description>- </SynchronousCommand>- </FirstLogonCommands>- </component>- </settings>-</unattend>\ No newline at end of file