Has your computer been setup to accept the remote shutdown command?
The note from the docs states…
The user specified in the credentials should be an applicable user listed in C:/Users . This may differ from the username used to login to Windows. Depending on your settings and privileges within Windows, changes to the firewall, UAC (User Account Control) and registry settings may be required to allow this add-on to remotely shut down your computer. There are many guides available online on how to adjust these settings.
I tried to, mby u have more specific commands/tutorial/info? User os 100% right. I saw that info before. I tried a few commadn aswell, disabling firewall etc, i just need specific step by step commands to execute.
Hi, i have the same error message, “Bad SMB signature message” and can’t figure it out. I add the LocalAccountTokenFilterPolicy set to 1, I did set my samba options to acces my HA files, but i need help do shutdown this PC please !
i tried this solution but it didn’t work for me. i am running windows 10 Home on my laptop and I followed the steps in the registry editor but when I run rpc shutdown in home assistant I get “The username or password was not correct”. the username is the user in “C:\Users” and password is my Microsoft account password. Is there something wrong in my setup?
Wanted to say thanks for sharing this document. It’s a real treasure trove for a total noob home automation enthusiast with no coding experience. Got RPC to work correctly (creating and populating the switches.yaml file and tying it into configuration.yaml plus the registry edit and wake packet setting).
Thanks for the reply. Happy to hear it helped other people to get things started! I indeed, wrote it for n00b purposes, since these were, and sometimes still are the things I run into. Actually used it myself sometimes to reconnect things after internet provider change. If you have any questions just let me know, I am not an expert at all, but it seems we are all running into the same issues from time to time and I think the community is the way to go:).
Of course, first follow documentation regarding IP-address and user-credentials of the machine you wan’t to shutdown remotely. Also, don’t forget the regedit LocalAccountTokenFilterPolicy RoyD2 spoke about.
When that’s done, on the remote machine:
Go to Windows Firewall (Start > Run > wf.msc), go to ‘Inboud Rules’.
Enable ‘Remote Service Management (NP-In)’.