remote-shutdown-pc
remote-shutdown-pc copied to clipboard
All end points are executing the default action
I have windows 11 no matter what request I trigger is executing the default action (Sys tray command). I'm using a secret.
Can you provide a sample url? What do you use to trigger request, curl?
I second this issue.
I use http://ipadress:5001/secret/hibernate
or http://ipadress:5001/secret/hibernate/
and it reboots (which is the Sys Tray command on the PC).
The "remote-host-name" doesn't work, IP adress does. Maybe I didn't understand the instruction right at first...
I use your tool in a public library, thanks for your work !
Can you try a different command http://ipadress:5001/secret/lock or ttp://ipadress:5001/secret/suspend? The hibernate should be enabled in Windows, it is possible that it is disabled and just causes reboot.
I just tried http://ipadress:5001/secret/lock on my Windows 11 and it works fine.
"remote-host-name" depends on network configuration. Sometimes it does not work even on professionally configured corporate networks. IP address also might not work if you are in a different subnet.
same here, no matter what command i specify after the secret the default action is executed. i am sure it worked as expected before
EDIT: I found out that clearing the secret code field, restarting my pc and re-entering the code fixes this issue.
if this does not work for you, it's worth mentioning that previously I accidentally caused the application to crash by saving the settings with the "System Tray Command" field empty. this might have caused some files to be recreated automatically
SECOND (SAD) EDIT: The above tips worked for less than 24 hours, the issue came back the day after unluckily.
Same issue here.
I noticed that the address can not end with the final slash /:
In my custom .bat script, this one is always hibernating for me:
set DelayStr=?delay=0
set URL="http://%remote_shutdown_desktop_ip%:%remote_shutdown_port%/%remote_shutdown_secret%/%WhatToDo%/%DelayStr%"
curl %URL%
And this one:
set DelayStr=?delay=0
set URL="http://%remote_shutdown_desktop_ip%:%remote_shutdown_port%/%remote_shutdown_secret%/%WhatToDo%%DelayStr%"
curl %URL%
Works as intended.