stop-service / restart-server / start-service


hi

we restart server every sunday at 01:00 am. a service doesn't start after reboot.

a thought do with powershell script. don't know how can remember have start service after reboot.

script possibility scheduled task:
first have stop-service *nameofservice*
restart server.
after 5 minutes after server & running -> start-service *nameofservice*.

how can powershell?

another idea change startup type on: "automatic (delayed start)

thanks support
best regard
mick

it better fix problem instead of putting bandaid on it.

\_(ツ)_/



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Schannel Issue

Indexing Server

oclist /xml or /?