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

Page 1 of 2 12 LastLast
    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
    Designer Media Ltd


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

       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
    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
    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 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.
    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








  1. NoN
    Posts : 4,166
    Windows 7 Professional SP1 - x64 [Non-UEFI Boot]
       #1

    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 Computer


  2. Posts : 71,959
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #2

    Thank you NoN. :)
      My Computer


  3. T C
    Posts : 1
    Windows 7 Home Premium x64
       #3

    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 18:25.
      My Computer


  4. Posts : 71,959
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #4

    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 Computer


  5. Posts : 2
    Windows 7 64 bit
       #5

    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 Computer


  6. Posts : 71,959
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #6

    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 Computer


  7. Posts : 2
    Windows 7 64 bit
       #7

    Thanks Shawn! I will do that.
      My Computer


  8. Posts : 71,959
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #8

    You're most welcome. :)
      My Computer


  9. Posts : 22
    Windows 7 Home Premium 32bit
       #9

    Is there any way to only turn off the monitor without locking the computer?
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About 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 00:49.
Find Us