As part of the System Admin life you would have used this statement at least once.
Its “Have you restarted the computer?” LOL
to help with that the script below.
$path = get-content -path "machine name list"
Foreach($Machines= in $Path){
Restart-Computer -ComputerName $Machine -Force
"Machine Restarted : $line"
}
