MSTSC

Slow Securing Remote Connection

Sometimes take as long as 45 seconds before your MSTSC connection connects?
here is how to fix it.

  • Log into the server take takes a long time to connect to
  • Open up MMC (Start → Run → MMC)
  • Add Snap in Certifications for the Local Computer Account
  • Export the machine's self signed certficate found in the folder \\Remote Desktop\Certificates\
  • Copy this file to your PC (and create a folder of all your “MSTSC certftcates” in case you need to import into a nother PC
  • Import this certificate into “Trusted Root Certificates”
  • MSTSC shoudl now connect in a few seconds.

Reference: (note quite 100% - but similar to above) https://support.microsoft.com/en-gb/help/2915774/remote-desktop-connection-is-sometimes-stuck-on-the-securing-remote-co

Start MSTSC from a URL

x-support.zip

Example: servername

Reference: https://msdn.microsoft.com/en-us/library/aa767914(v=vs.85).aspx

  • Create a Batch File as per below and save as C:\X-Support\Utilities\run-mstsc.cmd (or other location - update registry with relevant)
  • Add rdp URI Scheme to the PC's Registry
  • In your webpage have the URL link format as follows: rdp://servername

rdp-uri.cmd

FOR /F "TOKENS=2 DELIMS=/" %%A IN (%1) DO SET ADDRESS=%%A
start mstsc /v:%ADDRESS%

Registry Setting

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\rdp]
@="URL:rdp Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\rdp\shell]
[HKEY_CLASSES_ROOT\rdp\shell\open]
[HKEY_CLASSES_ROOT\rdp\shell\open\command]
@="\"C:\\X-Support\\Utilities\\rdp-uri.cmd\" \"%1\""

As above but for SSH protocol and to open Putty

ssh-uri.cmd
FOR /F "TOKENS=2 DELIMS=/" %%A IN (%1) DO SET ADDRESS=%%A

c:\
cd C:\X-Support\Utilities\
start putty -ssh %ADDRESS%

Registry Setting

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\ssh]
@="URL:ssh Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\ssh\shell]

[HKEY_CLASSES_ROOT\ssh\shell\open]

[HKEY_CLASSES_ROOT\ssh\shell\open\command]
@="\"C:\\X-Support\\Utilities\\ssh-uri\" \"%1\""
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies