How to Lock Your Windows 10 PC Using Command Prompt
Step 1: Press Windows + R key to open Run command box. Step 2: In the Run dialog box, type rundll32.exe user32. dll,LockWorkStation and then press Enter key to lock computer.
Press and hold the Windows logo key on your keyboard (this key should appear next to the Alt key), and then press the L key. Your computer will be locked, and the Windows 10 login screen will be displayed.
- Press Ctrl, Alt and Del at the same time.
- Then, select Lock this computer from the options that appear on the screen.