Hmmm I am running windows 7 pro. This should work for win 7, I'm not sure about win 8.
Also, you have to run this with adminitrator rights as it stops and starts services. To debug it open an administrative cmd window and try the sc commands manually.
Rick
"If I have seen further it is by standing on the shoulders of giants." Sir Isaac Newton, 1675