Commit f21f9ca7 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Remove "Enable RDP" entry from unattend.xml

The DisableRemoteDesktopConnection task is nowadays self-standing. It
will make sure that RDP will be enabled in the first boot if it gets
disabled by this task. There is no need to have this entry in the
default unattend.xml file.
parent 73d8ccd1
......@@ -92,9 +92,6 @@ $HIVEXREGEDIT --merge "$hive" "$regfile"
# Ensure the value of fDenyTSConnections is re-set
# to its original Image-specific state after Setup has completed.
# TODO: Remove any snf-image specific <RunSynchronousCommand>
# segments from unattend.xml, since this task is now self-standing.
curval=$(printf "%d" "$curval")
echo "reg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server\" /f /v fDenyTSConnections /t REG_DWORD /d $curval" >> \
"$SNF_IMAGE_TARGET/Windows/Setup/Scripts/SetupComplete.cmd"
......
......@@ -27,19 +27,14 @@
<Order>2</Order>
<Path>diskpart.exe /s C:\Windows\SnfScripts\ExtendFilesystem</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Description>Enable RDP</Description>
<Order>3</Order>
<Path>cmd /C reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Description>Enable Automatic Updates</Description>
<Order>4</Order>
<Order>3</Order>
<Path>cmd /C reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v AUOptions /t REG_DWORD /d 4 /f</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Description>Supress local user account setup</Description>
<Order>5</Order>
<Order>4</Order>
<Path>cmd /C reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Setup\OOBE /v UnattendCreatedUser /t REG_DWORD /d 1 /f</Path>
</RunSynchronousCommand>
</RunSynchronous>
......@@ -56,19 +51,14 @@
<Order>2</Order>
<Path>diskpart.exe /s C:\Windows\SnfScripts\ExtendFilesystem</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Description>Enable RDP</Description>
<Order>3</Order>
<Path>cmd /C reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Description>Enable Automatic Updates</Description>
<Order>4</Order>
<Order>3</Order>
<Path>cmd /C reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v AUOptions /t REG_DWORD /d 4 /f</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Description>Supress local user account setup</Description>
<Order>5</Order>
<Order>4</Order>
<Path>cmd /C reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Setup\OOBE /v UnattendCreatedUser /t REG_DWORD /d 1 /f</Path>
</RunSynchronousCommand>
</RunSynchronous>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment