Category filter

Script to shut down Windows 10 devices

The admin might need to shut down devices remotely. Hexnode allows admins to shut down Windows 10 devices by deploying scripts. The admin can delay the action according to their wish. This document contains the code snippets for shutting down the device.

Disclaimer:

The Sample Scripts provided below are adapted from third-party Open-Source sites.

Batch Script

Powershell Script

Notes:

  • By making changes to the last part of the command, you can delay the process. To shut down the device in 15 seconds,
  • It is recommended to manually validate the script execution on a system before executing the action in bulk.
  • Hexnode will not be responsible for any damage/loss to the system on the behavior of the script.

  • Sample Script Repository