Lock screen from command line in WindowsPublished January 3, 2022 (last updated June 25, 2026)rundll32.exe user32.dll,LockWorkStation