I’m looking to be able to remotely power on my Windows machine and start a program.
I have WoL (Wake on LAN), and a SSH Server configured so I’m able to remotely turn on the machine and remotely access it.
I’d like to be able to next log in a desktop session on that machine (as it will be on the login screen on boot up). Is this possible?
Just to clarify a couple things:
- The SSH session I have is authenticated and “logged in” with my user. Im specifically talking about logging in the machine from that session from the perspective of if someone was physically looking at the monitor output.
- I don’t want to remove that login screen from boot up, because most of the time I still want the security of having a login process.
- I will eventually want to start a gui application in that desktop, so running a process in the ssh session is not what I’m after.
- I also do not want to use something that requires human intervention, I.e. using Windows Remote Desktop and having to log in that way.
Edit: Here’s an example. I want a script I want run from a remote machine, which will turn on the computer (WoL current solution), then open a desktop application like the calculator app.
The script itself does not need to interact with that calculator app, but just needs it to be opened for the desktop session of the target windows machine. I.e after the script has run and a user sits down physically at the target windows machine, the calculator app is open on their desktop.
The solution doesn’t need to be ssh, I just assumed an authenticated ssh session would have been part of a solution. But other methods of remote authentication and sending commands are welcome. Though I am looking at running this script from a Linux machine.
Hope that clarifies what I mean by opening a GUI app remotely, and no human intervention.
Final Edit: Check the final reply to the accepted answer for my final solution.