Remote Desktop

WindowsUpdate

Remote Desktop Crashes with printer related errors.

Has your Remote Desktop Server been crashing a lot for the last 2 weeks?

It’s probably because you have recently installed Windows Update KB4541329. In my environment, this caused anyone with a redirected printer to receive frequent app crashes, notably in Excel and Outlook. Checking the Event Logs revealed a lot of print spooler and winspool.drv errors.

Following this I also discovered that clicking ‘Device and Printers’ would crash Explorer.exe repeatedly.

Resolution

Simply uninstall the update from appwiz.cpl and and reboot your server. On my servers this took a good 15-20 minutes with 100% cpu utilisation.

Remote Desktop Command Line

The Quickest way Enable Remote Desktop

You can enable Remote Desktop to your PC via the command line. It’s far faster and more reliable than doing it through the GUI as you won’t miss any steps.

This will not work on Windows Home edition, you must be at least Windows Pro or above.

To start, you’ll need an Administrator level command prompt. Then paste in the following registry, firewall, and user permission commands.

#Enable Remote Desktop - Equivalent to "Allow remote connections to this computer" in System Properties
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v fDenyTSConnections /t REG_DWORD /d 1 /f
#Allow RDP through the firewall
netsh advfirewall firewall set rule group="remote desktop" new enable=Yes
#Authorise a specific domain user or group to connect
net localgroup "remote desktop users" "domain.local\username" /add

Optional: Disable NTLM Authentication

reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v UserAuthentication /t REG_DWORD /d 0 /f

Bonus: If you’re using an SSL VPN or Guacamole and everything works with the native Remote Desktop Connection client, but your web or linux based client can’t connect… Try to disable this component of the graphics driver.

I’ve found that this mostly applies to computers that got upgraded from Windows 7 to Windows 10, and do not have an up to date graphics driver.

#Disable WDDM
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v fEnableWddmDriver /t REG_DWORD /d 0 /f

You’re all set.

Find the computer name, and launch Remote Desktop Connection from your client PC.