Net Start tip for the lazy

Net Start tip for the lazy

  • Comments 7

This is just a little tip - but I thought it was worth sharing.  If you ever find yourself wanting to start or stop Virtual Server from the command prompt under Windows, you will need to run the following command:

net stop "Virtual Server"
net start "Virtual Server"
Now - if you forget to use the quotes around "Virtual Server" you will get an error message because it can't find the service name.  Interestingly enough, it works fine if you drop the last quote, so: 
net stop "Virtual Server

Works fine.  Nothing big, I know, but it is handy for those of us who are lazy about typing in commands...


Leave a Comment
  • Please add 2 and 8 and type the answer here:
  • Post
  • Hehe.  I've been doing that for quite some time now :)

    Guess I'm one of those too lazy to type the extra quote.

  • How about sc start "Virtual Server" instead?  Less characters and you don't have to wait for it to return.  sc is the preferred way to interact with services.

  • How about

    sasv 'Virtual Server'

    (PowerShell), even shorter ("sasv" is alias for "Start-Service", as "spsv" is for "Stop-Service").

  • That's just plain lazy ;)

  • Dropping the last quote works for many programs. It's a side-effect of the way the C run-time parses the command-line into the array that's passed as the second argument to main().

  • Is there an equivalent service name for Virtual PC?

  • Virtual PC runs as a normal process (virtualpc.exe), not a service.

Page 1 of 1 (7 items)