执行命令:

%windir%system32rundll32.exe user32.dll,LockWorkStation

即可,也可以创建一个快捷方式,指向上面这个命令。