psshutdown to remote hibernate pc getting Couldn't access PCXX normal shutdown works fine

James 0 Reputation points
2024-02-15T04:04:37.4366667+00:00

So I'm trying to remotely hibernate a PC on my home network. Topline: normal remote shutdown using shutdown.exe works fine but doesn't support remote hibernation, only shutting down or resetting and psshutdown attempts to connect to the remote pc but gives the following error message:

C:\PSTools\psshutdown64 -h \PCXX -u userxx

Couldn't access PCXX:

Access is denied.

If PCXX is already performing a shutdown operation you must

abort it before issuing a different command.

A few notes. In an ideal world, I'd like psshutdown to use a dedicated user (or no user at all) for this task as there doesn't seem to be a secure way to store the password and this will be run from a script. The computer being hibernated is a Windows 11 machine and the computer doing the shutting down is a Windows 10 machine.

Sysinternals
Sysinternals
Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.
1,209 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.