How to Lock Computer Screen?

Date:2022-9-27 Author:Sandra

It’s inevitable that we need to go to the bathroom or make a cup of coffee or go to a meeting in the workplace. To prevent our computers from being viewed or manipulated by others, locking computer screen is a good choice. So how to lock the computer screen? We had talked about this in our previous tutorial.

But in our today’s tutorial, we are going to introduce two cool approaches. Let’s check this out.

Method 1

Create a new Text document.

How to Lock Computer Screen?

Type

Dim WSHShell

Set WSHShell=WScript.CreateObject(“WScript.Shell”)

WSHShell.Run “Rundll32.exe user32.dll,LockWorkStation”, 0 in the text document and save it as vbs formatting. (You can just copy and paste this into your text document.)

Lock Computer Screen
How to Lock Computer Screen?
How to Lock Computer Screen?

Just double-click it, and your computer screen would be locked at once.

Method 2

Create a new shortcut.

How to Lock Computer Screen?

Type this in the box.

rundll32.exe user32.dll,LockWorkStation

How to Lock Computer Screen?

Hit Next and name the shortcut.

How to Lock Computer Screen?
Lock Computer Screen

Just double-click it, and your computer screen would be locked at once.

These two methods have the same effect, that’s cool, right?

Copyright Statement: Regarding all of the posts by this website, any copy or use shall get the written permission or authorization from Myofficetricks.

Leave a Reply

Your email address will not be published. Required fields are marked *