One thought on “Windows: Lock the screen by command line”

  1. FYI – Also if you want to run screen saver then lock screen via a one line cmd line. Good for using for shortcut key scripts.

    start /wait %windir%\SCREENAVER.scr & rundll32.exe user32.dll,LockWorkStation

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.