+ 1
how i can secure my pc by cmd
2 odpowiedzi
+ 2
If you mean lock (as if you got up and pressed Win+L at the GUI) ...
Here's a code that checks if the workstation is already locked:
https://code.sololearn.com/cDvT2p7o5XHh/?ref=app
... which includes (in the comments) the string you might type by hand (or put in a batch program) to lock the workstation programmatically.
This link discusses that command, as well as short programs you can write to enable the same function:
https://superuser.com/questions/21179/command-line-cmd-command-to-lock-a-windows-machine
Despite comments that it's not recommended, the lock function has been available this way for as long as I can remember.
0
thanks