A Failed to restart the computer ‥ with the following error message: system shutdown is in progress.
A already initiated system shutdown blocked the restarting of the computer:
PS: C:\> restart-computer tq84srv -credential (get-cred)
Restart-Computer : Failed to restart the computer tq84srv with the following error message: A system shutdown is in progress.
PS: C:\> taskkill /s tq84srv /u rene /p mySecretPassword /im TrustedInstaller.exe /f
SUCCESS: The process "TrustedInstaller.exe" with PID 4312 has been terminated.
PS: C:\> restart-computer tq84srv -credential (get-cred)