6 lines
153 B
PowerShell
6 lines
153 B
PowerShell
$time = 120
|
|
$server = "mycomputer"
|
|
$comment = "this is my comment."
|
|
$reboot = @("/r", "/t", $time, "/m", "\\$server", "/c", $comment)
|
|
|
|
& shutdown $reboot |