views:

18

answers:

2

We have a 3rd program program that appears to have some sort of an issue that requires that it be bounced regularly, say, every 2 days.

How can we do this programmatically?

+1  A: 

You can do this with a PowerShell script:

Restart-Service "YourServiceName"

source

BenV
+1  A: 

You could run a scheduled task that runs a batch file which contains:

net.exe stop "service name"
net.exe start "service name"
DougN

related questions