Toggle Remote Desktop - Ron Crumbaker's Web Remote tool

In our environment, the default on the XP image is to not have Remote Desktop enabled.  But then there are always exceptions--we have Kiosk-type workstations in common areas.  The techs wanted a way to Toggle Remote Desktop on and off so when they had to do work on these computers, they could toggle on RDP, log in remotely, do the work, and then toggle RDP off again.

Edit MachRest.asp, and add a button by your other buttons (about line 80-ish):
<INPUT id="Button724" style='WIDTH: 180px' type='button' value='Toggle RDP' name='Btnl724'>

Then copy/paste the attached information (the Sub) probably near the bottom, just before the </script>, after all of the other SUB/end Sub routines.

The subroutine has several error-checking things in it: is the computer pingable, do you have rights to the WMI, and then is the computer not a server.  Only if you have rights to the WMI, and it's not a server, can you toggle.  I had to add in the error checking because some techs would have admin rights to a server, and it was attempting to toggle Terminal Services on a Server.

Attachment: ToggleRDP.txt
Published Monday, September 11, 2006 3:38 PM by skissinger

Comments

# myITforum Daily Newsletter; September 12, 2006

myITforum Daily Newsletter Daily Newsletter September 12, 2006 The myITforum.com newsletter is delivered

Tuesday, September 12, 2006 12:25 PM by myITforum Newsletters