SYNOPSIS

Reboots the local machine ensuring Boxstarter restarts
automatically after reboot and sets up autologin if it a
password was provided.

DESCRIPTION

Use this command inside of a boxstarter package instead
of calling Restart-Computer

This command will often be used with the Test-PendingReboot
command. If Test-PendingReboot returns true, one may want
to call Invoke-Reboot to restart otherwise the remainder of
the package might fail.

SYNTAX

Invoke-Reboot <CommonParameters>

NOTES

One can use the $Boxstarter variable's RebootOk to enable/disable
reboots. If this is set to $False (the default) then Invoke-Reboot
will not do anything. If Boxstarter was invoked with the -Rebootok
parameter $Boxstarter.RebootOk is set to True.

LINK

Test-PendingReeboot
Invoke-Boxstarter
about boxstarter bootstrapper
about the $boxstarter variable in bootstrapper

Last edited Mar 13, 2013 at 12:06 PM by mwrock, version 1