Project

General

Profile

Actions

Support #708

open

Failed to restart the computer QPWSHYBK01 with the following error message: The system shutdown cannot be initiated because there are other users logged on to the computer.

Added by Man CHENG 11 months ago. Updated 11 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
12/25/2024
Due date:
% Done:

0%

Estimated time:

Description

PS C:\temp> Restart-Computer -ComputerName QPWSHYBK01
Restart-Computer : Failed to restart the computer QPWSHYBK01 with the following error message: The system shutdown
cannot be initiated because there are other users logged on to the computer.
At line:1 char:1
+ Restart-Computer -ComputerName QPWSHYBK01
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (QPWSHYBK01:String) [Restart-Computer], InvalidOperationException
    + FullyQualifiedErrorId : RestartcomputerFailed,Microsoft.PowerShell.Commands.RestartComputerCommand
Actions #1

Updated by Man CHENG 11 months ago

Restart-Computer -ComputerName QPWSHYBK01 -Force
Actions

Also available in: Atom PDF