Last updated: 2021-06-16

Source: https://support.freshservice.com/support/solutions/articles/50000003614-sample-usecase-restart-windows-machine-remotely-using-powershell

In this documentation, we explain how to restart a remote windows machine using Powershell. We achieve this by invoking the app action node with the following configuration:

App Node: Powershell - Orch

App Action: Execute Command

The 'command' input is the Powershell command to restart the windows machine as following -

Restart-Computer

NOTE:

The condition for this command execution is that no user should be logged in to the system.