Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Lock Computer and Turn Off Monitor - Add to Desktop Context Menu



Lock Computer and Turn Off Monitor - Add to Desktop Context Menu

How to Add "Lock Computer and Turn Off Monitor" to the Context Menu in Windows
Published by Brink
04 Nov 2011
Published by

How to Add "Lock Computer and Turn Off Monitor" to the Context Menu in Windows

information   Information
This tutorial will show you how to add Lock Computer and Turn Off Monitor to the desktop context menu in Windows 7 and Windows 8.

When used by a user, it will lock the computer and turn off the display (monitors). To return to Windows, you would just need to move the mouse or press a key on the keyboard to turn on the display (monitors) again, then log on from the lock computer screen.

Note   Note
You must be logged in as an administrator to be able to add this to the desktop context menu, but all users on the computer will be able to use the context menu.


EXAMPLE: "Lock Computer and Turn Off Monitor" added to Desktop Context Menu
Name:  Example.jpg
Views: 3246
Size:  34.4 KB
Here's How:
1. Do either step 2 or 3 below for what you would like to do.

2. To Add "Lock Computer and Turn Off Monitor" to Context Menu
A) Download the 32-bit or 64-bit version of NirCmd at the bottom of the website below that is the same as your 32-bit or 64-bit Windows, and save the ZIP file to your desktop.
NirCmd - Windows command line tool
B) Open the downloaded ZIP file, and extract (drag and drop) the nircmd.exe file to your desktop, and unblock the file.

C) Click/tap on the Download button below to download the .bat file below, and save the .bat to your desktop.
Turn_Off_Monitor_and_Lock_Computer.bat

download
D) Unblock the .bat file.

E) Move both the unblocked nircmd.exe file and unblocked Turn_Off_Monitor_and_Lock_Computer.bat file into your C:\Windows\System32 folder, and approve (Continue-Yes).
NOTE: The .bat file must have this exact name. Rename if needed.

F) Click/tap on the Download button below to download the .reg file below, and save the .reg file to your desktop.
Add_Lock-Computer_Turn_Off_Monitor_to_Context_Menu.reg

download
G) Double click/tap on the downloaded REG file to merge it, then click/tap on Run, Yes (UAC), Yes, and OK when prompted to approve the merge.
3. To Remove "Lock Computer and Turn Off Monitor" from Context Menu
A) Click/tap on the Download button below to download the file below.
Remove_Lock-Computer_Turn_Off_Monitor_from_Context_Menu.reg

download
B) Double click/tap on the downloaded REG file to merge it, then click/tap on Run, Yes (UAC), Yes, and OK when prompted to approve the merge.

C) In Windows Explorer (Windows 7) or File Explorer (Windows 8), navigate to C:\Windows\System32, and delete the nircmd.exe and Turn_Off_Monitor_and_Lock_Computer.bat files.

That's it,
Shawn





Related Tutorials

.

17 Nov 2011   #1
NoN

Windows 7 Professional SP1 - x64
 
 

Quote:
You must spread some Reputation around before giving it to Brink again.
Well, this said i do Rep you here myself for that one click on my desktop!

My System SpecsSystem Spec
.

17 Nov 2011   #2
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Thank you NoN.
My System SpecsSystem Spec
07 Apr 2013   #3
T C

Windows 7 Home Premium x64
 
 
Windows + L to lock screen and...

How is that different from hitting Windows + L to lock the screen (in effect)? Namely my screens did not turn off but just went dark with center screen going to unlock screen.
My System SpecsSystem Spec
07 Apr 2013   #4
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hello T C, and welcome to Seven Forums.

Normally when you just lock your computer, you will only see the lock screen. The display doesn't turn off automatically until after some idle time has passed.

This will lock your computer and turn off your display(s) instantly. Just like when your display(s) turn off normally, any movement of the mouse, touchpad, or pressing a key will have the display(s) automatically turn back on to see the lock screen to be able log back in.

You may have inadvertently moved or pressed something right after clicking on the context menu to turn the display back on. While on the lock screen, it is normal for only your main display to on and not your other displays. The other displays only turn on while in Windows. Sometimes you may have another on during boot, but not always.

If you are sure that you didn't move or press anything, then you may have missed a step in the tutorial, or downloaded the wrong NirCmd 64-bit file for your 64-bit Windows 7.

Hope this helps,
Shawn
My System SpecsSystem Spec
18 Apr 2014   #5
pdi805

Windows 7 64 bit
 
 
Same process in a shortcut?

Hey Shawn - Thank you so much for this! It's EXACTLY what I wanted.

One question... Is it possible to have this exact same process (lock computer and turn off monitors) in a desktop icon and/or a shortcut key? If so, let me know how to go about doing that.

Thanks!
PDI
My System SpecsSystem Spec
18 Apr 2014   #6
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hello PDI, and welcome to Seven Forums.

Since you already added the context menu, you could create a shortcut of the .bat file from step 2 on your desktop, and be able to change the shortcut's icon and shortcut key.
My System SpecsSystem Spec
18 Apr 2014   #7
pdi805

Windows 7 64 bit
 
 

Thanks Shawn! I will do that.
My System SpecsSystem Spec
18 Apr 2014   #8
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

You're most welcome.
My System SpecsSystem Spec
Comment

 Lock Computer and Turn Off Monitor - Add to Desktop Context Menu




Tutorial Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 03:20 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33