Windows: Lock the screen by command line


there is no command line tool that can lock the screen, but it’s possible by calling the Win32 API function.
This can be done by Rundll32.exe

D:\> Rundll32.exe user32.dll,LockWorkStation


Advertisment to support

Leave a Reply

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.