how i can secure my pc by cmd | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how i can secure my pc by cmd

8th May 2018, 4:48 PM
Abduselam Mohammed Ahmed
Abduselam  Mohammed Ahmed - avatar
2 Answers
+ 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.
8th May 2018, 6:25 PM
Kirk Schafer
Kirk Schafer - avatar
0
thanks
8th May 2018, 5:23 PM
Abduselam Mohammed Ahmed
Abduselam  Mohammed Ahmed - avatar