How to lock Windows with a batch file

Create a new text file, put this line inside :

“C:\Windows\System32\rundll32.exe” user32.dll, LockWorkStation

And then save it as a .bat file

Advertisements