stop remote desktop manual

  • Thread starter Thread starter David
  • Start date Start date
D

David

Dear all,



Can I stop Windows XP Remote Desktop function by manual? I try to stop
terminal service, but I can¡¦t stop it. I want to write a script to stop it
manual. How should I do that?



Many thanks for your help!
 
David,
You cannot stop the service that run Remote Desktop (termsrv.dll).
If you want to make so it stop functioning (not accepting remote desktop
connection), you can run the following vbs script:

Set obji =
GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf("Win32_TerminalServiceSetting")
For Each Terminal In obji
Terminal.SetAllowTSConnections 0
Terminal.refresh_
Next

Thanks
Soo Kuan
 
Back
Top