KjetilSv / Win10As

Make your windows 10 computer IOT friendly
237 stars 42 forks source link

needed lock & unlock pc #1

Closed pickeld closed 7 years ago

pickeld commented 7 years ago

do you think its possible to add the ability to lock (easy) & unlock (maybe possible) the pc?

KjetilSv commented 7 years ago

lock is easy yes.. a couple of days and i will upload a new build. unlock .. i will try :)

FatBasta commented 7 years ago

You can use a command line and a custom topic, I added a topic: "lockcomputer" cmdtxt: "rundll32.exe" cmdparameters: "user32.dll, LockWorkStation"

Home-assistant sends the topic YOUR_TOPIC_HERE/lockcomputer and locks my computer when I leave home.

Works like a charm.

pickeld commented 7 years ago

good job!! the hardest part is yet to come . unlocking the PC remotely 💯

KjetilSv commented 7 years ago

Thanks you guys, its so very rewarding that people use the stuff i make. I'll working on a new version but things are stressfull atm,

KjetilSv commented 7 years ago

Lock is now implemented in the latest installer. There is ways to do the unlock but only shady/unsafe solutions so it will not be implemented.