Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save maximishchenko/961800b05d59193de3c3 to your computer and use it in GitHub Desktop.
Save maximishchenko/961800b05d59193de3c3 to your computer and use it in GitHub Desktop.
Windows remote shutdown/restart
# <arg> - argument (r/s): r - for restart, s - for shutdown
# <time> - time in seconds
# <ws> - ip-address, hostname or fqdn
shutdown -<arg> -f -t <time> -m \\<ws>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment