Search notes:

PowerShell cmdLet Restart-Computer

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)

See also

The command parameter -credential.
Powershell command noun: computer

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1758200926, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/PowerShell/command-inventory/noun/computer/restart(49): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78