I have been unable to run this script. I tried saving as .vbs and it wouldn't run at all.
I need to cleanup these ports and then, i guess, restart the print spooler service.
Other than a server reboot, is there any other way to drop these ports or keep them from even being created?
Stumbled across this post and had trouble getting the script to run on 2008R2 - it turns out that the registry location has changed. All it takes is changing one line from J Frankenfield's revision (and running the script with admin priveleges) and it works like a dream.
The line
CONST BASEKEY = "SYSTEM\CurrentControlSet\Control\DeviceClasses\{28d78fad-5a12-11d1-ae5b-0000f803a8c2}\##?#Root#RDPDR#0000#{28d78fad-5a12-11d1-ae5b-0000f803a8c2}"
becomes
CONST BASEKEY = "SYSTEM\CurrentControlSet\Control\DeviceClasses\{28d78fad-5a12-11d1-ae5b-0000f803a8c2}\##?#Root#RDPBUS#0000#{28d78fad-5a12-11d1-ae5b-0000f803a8c2}"
oarc,
Do you know how to suppress the Checking and Deleting prompts? If it is possible.
Nevermind, that was too simple.
'
Thanks for the solution