I sometimes need to stop and restart the pcAnywhere service from a command line, but do it so rarely I usually can't remember the exact name of the service. You can see the names of services on a system by using the
net start
command. Issuing it without any
arguments given to it shows a list of available services on the system.
If you use the find
with it, you can filter the list of
displayed services to see just the name for the pcAnywhere service.
C:\Documents and Settings\administrator>net start | find /i "pcanywhere"
pcAnywhere Host Service
Knowing that it is "pcAnywhere Host Service", you can then use net stop
"pcanywhere host service"
to stop the service and net start
"pcanywhere host service"
to restart it.
References:
-
How to Use the net Command
Cisco Systems, Inc.
May 17, 2006
[/os/windows/software/remote-control/pcanywhere] permanent link