From 2028aa50d04d78ab1f588589b669c443cb385007 Mon Sep 17 00:00:00 2001 From: "Jason T. Greene" Date: Tue, 26 Sep 2023 11:40:20 -0500 Subject: [PATCH 1/2] Add example userdata for reenabling RDP Signed-off-by: Jason T. Greene --- win_images/enable-rdp-userdata.xml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 win_images/enable-rdp-userdata.xml diff --git a/win_images/enable-rdp-userdata.xml b/win_images/enable-rdp-userdata.xml new file mode 100644 index 00000000..6ad253e2 --- /dev/null +++ b/win_images/enable-rdp-userdata.xml @@ -0,0 +1,4 @@ + +Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server" -Name "fDenyTSConnections" -Value 0 +Enable-NetFirewallRule -DisplayGroup "Remote Desktop" + From f5884c1b0324e3bb1b3e80a265b624d8a52a2c19 Mon Sep 17 00:00:00 2001 From: "Jason T. Greene" Date: Tue, 26 Sep 2023 11:39:00 -0500 Subject: [PATCH 2/2] Add Hyper-V Signed-off-by: Jason T. Greene --- IMG_SFX | 2 +- win_images/win_packaging.ps1 | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/IMG_SFX b/IMG_SFX index a3a11294..5eb41d83 100644 --- a/IMG_SFX +++ b/IMG_SFX @@ -1 +1 @@ -20230921t145748z-f38f37d13 +20230926t165419z-f38f37d13 diff --git a/win_images/win_packaging.ps1 b/win_images/win_packaging.ps1 index 6fac680e..540cbef7 100644 --- a/win_images/win_packaging.ps1 +++ b/win_images/win_packaging.ps1 @@ -30,6 +30,9 @@ iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocola choco install -y git mingw archiver psexec; CheckExit choco install golang --version 1.19.2 -y; CheckExit +# Install Hyper-V +Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All -NoRestart + # Install WSL, and capture text output which is not normally visible $x = wsl --install; CheckExit 0 1 # wsl returns 1 on reboot required Write-Output $x