stop remote desktop manual

David

Distinguished
Apr 1, 2004
2,039
0
19,780
Archived from groups: microsoft.public.windowsxp.work_remotely (More info?)

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!
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.work_remotely (More info?)

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


--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"David" <david@msn.com.nospam> wrote in message
news:O9VSVPGCFHA.2460@TK2MSFTNGP14.phx.gbl...
> 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!
>
>
>