Home Lock windows workstation or server from a command line byAlex R. •July 14, 2022 Open cmd then run this Rundll32.exe user32.dll,LockWorkStation It can be very useful in case you want to lock a remote desktop session Facebook Twitter