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 startcommand. Issuing it without any arguments given to it shows a list of available services on the system. If you use the
findwith 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
"pcanywhere host service" to stop the service and
"pcanywhere host service" to restart it.