Stop and Restart Service

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
MikeSr
Junior Coder
Posts: 20
Joined: Sun Feb 07, 2010 8:31 pm
Location: Fort Myers, FL
Contact:

Stop and Restart Service

Post by MikeSr » Sun Nov 13, 2011 1:03 pm

I have been looking for a command that allow a service to be stopped and started. Does it exist?

User avatar
Marcus Tettmar
Site Admin
Posts: 7391
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Sun Nov 13, 2011 5:25 pm

//stop service
Run>net stop servicename

//start service
Run>net start servicename
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts