psshutdown to remote hibernate pc getting Couldn't access PCXX normal shutdown works fine
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.