(view source code of reboot.ps as plain text)
if ( $HOME[0] -eq "/" ) {
# Linux
shutdown -r
} else {
# Windows
( Get-WMIObject -Query "Select * From Win32_OperatingSystem Where Primary=True" ).Reboot( )
}
page last modified: 2024-04-16; loaded in 0.0058 seconds