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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top