Answer the question
In order to leave comments, you need to log in
Remote non-interactive lock Windows 10 with Android?
I welcome everyone!
You need to lock down a workstation running Windows 10 remotely over the network from an Android device non-interactively (without interfering with the user's work). It would seem that nothing complicated, but in fact the solution could not be found.
I see only two options for connecting to Windows 10:
rundll32.exe user32.dll,LockWorkStation
tsdiscon
Answer the question
In order to leave comments, you need to log in
I could be wrong, but it seems that SSH in Windows works on a virtual Linux, that is, it is useless to give commands to it. Alternatively, try setting up auto-start of all bows from a specific folder, let's say every 10 seconds. Further, if necessary, just mix the desired batch file into this folder via SSH and it will be automatically executed, after which it will delete itself.
So, I will summarize.
1. Within SSH , it is possible to block Windows using the tsdiscon utility , specifying the local session tsdiscon console
.
Despite the fact that SSH provides full access to the console (cmd or PowerShell), it is not possible to call the LockWorkStation function via a command rundll32.exe user32.dll,LockWorkStation
through the built-in OpenSSH server in Windows 10 (at least through the sshd service), because this function requires a desktop session , and SSH does not start in this session. Prior to Windows 2003 (on Windows XP), the function will work, because there
the local desktop is running in session 0.Those. before Vista, this command is executed under session 0 - within its framework there were no divisions between RDP, consoles, desktops, services. At the current moment, session 0 is isolated, non-interactive and is supposed to execute services and system processes - unfortunately, the above command falls into this session (and all commands executed via SSH, because their child process is the sshd service ), I understand it this way, but it may be wrong. If anything, here is the source (exactly the same question was raised there).
With build 9879 of Win 10 TP , Telnet Server is specifically removedThose. before build 9879 Win 10 TP telnet server should be. I found build 9841 (<9879) in the open spaces, but I did not find a telnet server there. I also tried to start a telnet server with Windows 8.1, but there are different imports, functions are not detected - such a port will not take off, in general. 3. As advised above, the schedule
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question