You could of course add far more intelligence and logging to this process. Maybe even write a full Powershell script around the Get-Service CMDLet. If you would rather not create a separate local account (preferred) to run this scheduled task, you can use the account 'System' without a password.
Your best bet would be to use something like Service Hawk. It has a feature built-in that allows you to restart services automatically on a user-defined schedule.
The quick and dirty way would be to setup a scheduled task to run the following command line.
To create this scheduled task to run every midnight via the command line:
You could of course add far more intelligence and logging to this process. Maybe even write a full Powershell script around the Get-Service CMDLet. If you would rather not create a separate local account (preferred) to run this scheduled task, you can use the account 'System' without a password.
you could create a scheduled task restarting the service with
net stop
andnet start
.Your best bet would be to use something like Service Hawk. It has a feature built-in that allows you to restart services automatically on a user-defined schedule.