Windows 7 Forums


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 04 Nov 2011
Published by

Featured Tutorial

Online Scanners - Scan Suspicious Files on your PC
Online Scanners - Scan Suspicious Files on your PC

How to Scan Suspicious Files using Online Scanners

Windows 7 Installation - Transfer to a New Computer
Windows 7 Installation - Transfer to a New Computer

How to Transfer your Complete Windows 7 Installation to a New Computer

Microsoft Account Display Name - Change
Microsoft Account Display Name - Change

How to Change your Microsoft Account Display Name

Safe Internet Browsing
Safe Internet Browsing

How to safely operate on the internet and stay free from malware infections

Portable OS - Carry your OS on an External Drive
Portable OS - Carry your OS on an External Drive

How to Create a Portable OS on an External Drive

Microsoft Accounts - Link
Microsoft Accounts - Link

How to Link your Microsoft Accounts
How to Add "Lock Computer and Turn Off Monitor" to the Context Menu in Windows

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

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 it after it has been added.


EXAMPLE: "Lock Computer and Turn Off Monitor" added to Desktop Context Menu
Lock Computer and Turn Off Monitor - Add to Desktop Context Menu-example.jpg
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 that is the same as your 32-bit or 64-bit Windows at the bottom of the website below, 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 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 .bat file into your C:\Windows\System32 folder, and approve (Continue-Yes).

F) Click 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 on the REG file to merge it, then click on Run, Yes (UAC-Windows 7) or Continue (UAC-Vista), Yes, and OK when prompted to approve the merge.
3. To Remove "Lock Computer and Turn Off Monitor" from Context Menu
A) Click on the Download button below to download the file below.
Remove_Lock-Computer_Turn_Off_Monitor_from_Context_Menu.reg

download
B) In Windows Explorer, navigate to C:\Windows\System32, and delete the nircmd.exe and Turn_Off_Monitor_and_Lock_Computer.bat files.
That's it,
Shawn






Need more help? Try searching our extensive help and support site.
Loading
17 Nov 2011   #1
NoN

Windows 7 Professional SP1 - x64
Lost In Space, Vol 8-New Kind Of Kick
 
 

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

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

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.

Last edited by T C; 07 Apr 2013 at 06:25 PM..
My System SpecsSystem Spec
.


07 Apr 2013   #4
Brink

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

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
Comment

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



Tutorial Tools



Similar help and support threads for: Lock Computer and Turn Off Monitor - Add to Desktop Context Menu
Windows 7 Tutorial Category
Turn Aero On/Off Shortcut In Windows 7 Desktop Context Menu Customization
Lock Computer - Add to Desktop Context Menu Tutorials
Solved Add Computer Management to Desktop Context Menu Customization
Computer Management - Add to Desktop Context Menu Tutorials
Computer - Add or Remove from Desktop Context Menu Tutorials


All times are GMT -5. The time now is 03:21 AM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

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
  

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