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

Group Policy Event ID 1058 Error Code 1326 (The user name or password is incorrect)

Suspicious event log Event ID: 4905

DCOM received error "2147746132" from...