Quantcast
Channel: PowerShell General
Viewing all articles
Browse latest Browse all 10624

Restart server & then email

$
0
0

I am trying to write a script to restart a server and then email when the restart is done.

I started with this basic command:  Restart-Computer -ComputerName <string[ ]>,

But I can't get it into a script and I need it as a scheduled task, and then the email when the server is back up?

 

 


Viewing all articles
Browse latest Browse all 10624

Trending Articles