Sign in with
Sign up | Sign in
Your question

stop remote desktop manual

Last response: in Windows XP
Share
February 2, 2005 12:42:11 AM

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!
Anonymous
February 2, 2005 12:42:12 AM

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:o 9VSVPGCFHA.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!
>
>
>
!