
The computer is starting again, and a reply is showing. We see a request timed out because the computer is offline. After a couple of seconds, we can’t see a reply. In the beginning, a reply is showing because the computer is still connected. The ping is showing a reply, request timed out, and reply of the remote computer: It will show us if we can reach the computer. Ping remote computerĪfter running the above cmdlet, ping the computer. PS C:\> Restart-Computer -ComputerName "PC01" -Force Doing that will immediately restart the computer without a countdown. We have to use the -Force parameter to restart the computer. Restart remote computer with PowerShell Force If there are no users logged in, a restart will immediately start without fail. There are users logged in on the computer, and we can’t restart the remote computer. + FullyQualifiedErrorId : RestartcomputerFailed, + CategoryInfo : OperationStopped: (PC01:String), InvalidOperationException Not be initiated because there are other users logged on to the computer.
Restart-Computer : Failed to restart the computer PC01 with the following error message: The system shutdown can PS C:\> Restart-Computer -ComputerName "PC01" We are going to make use of the Restart-Computer cmdlet. Restart remote computer with PowerShell Force.Restart remote computer with PowerShell.