Privacy and Security Add Lock Drive with BitLocker Context Menu in Windows 11


BitLocker_drive_banner.png

This tutorial will show you how to add Lock Drive to the context menu of all unlocked fixed and removable drives encrypted by BitLocker to lock the drive on demand in Windows 10 and Windows 11.

BitLocker Drive Encryption is a data protection feature that integrates with the operating system and addresses the threats of data theft or exposure from lost, stolen, or inappropriately decommissioned drives and computers.

You can turn on BitLocker to encrypt the operating system drive (Windows drive), fixed data drives (internal hard drives), and removable data drives (external hard drive or USB flash drive).

You can choose how you want to unlock an encrypted data drive: with a password or a smart card. For removable data drives encrypted with BitLocker To Go, you can set the drive to automatically unlock when you sign in to the PC. For fixed data drives, you can also set the drive to automatically unlock when you unlock the PC, if you prefer, as long as the operating system drive is BitLocker-protected.

To lock a fixed data drive encrypted by BitLocker, you could restart the computer unless you set the drive to automatically unlock when you sign in next.

To lock a removable data drive encrypted by BitLocker To Go, you could disconnect the drive or restart the computer unless you set the drive to automatically unlock when you connect the drive or sign in next.

You must be signed in as an administrator to add, use, or remove the "Lock Drive" context menu.

The Lock Drive context menu can be handy since it allows you to lock the drive without having to disconnect it or restart the computer. The drive will remain locked until you manually unlock it.

If you turn on auto-unlock for a fixed data drive or removable data drive encrypted by BitLocker, then the drive cannot be locked until you turn off auto-unlock for the drive.

BitLocker Drive Encryption is only available in the Windows 11 Pro, Enterprise, and Education editions.



Contents

  • Option One: Add Lock Drive Context Menu to BitLocker Fixed and Removable Data Drives
  • Option Two: Remove Lock Drive Context Menu from BitLocker Fixed and Removable Data Drives


EXAMPLE: "Lock Drive" context menu

When you right click on an unlocked BitLocker fixed or removable drive, you will need to click/tap on Show more options first, then click/tap on Lock Drive.


Lock_drive_context_menu.png






OPTION ONE

Add Lock Drive Context Menu to BitLocker Fixed and Removable Data Drives


1 Click/tap on the Download button below to download the ZIP file below.

Add_Lock_Drive_to_context_menu.zip


2 Save the .zip file to your desktop.

3 Unblock the .zip file.

4 Open the .zip file, and extract (drag and drop) the Add_Lock_Drive_to_context_menu.reg and lock-bde.bat files to your desktop.

(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Drive\shell\lock-bde]
"AppliesTo"="System.Volume.BitLockerProtection:=1 OR System.Volume.BitLockerProtection:=3 OR System.Volume.BitLockerProtection:=5 NOT C:"
@="Lock Drive"
"HasLUAShield"=""
"MultiSelectModel"="Single"

[HKEY_CLASSES_ROOT\Drive\shell\lock-bde\command]
@="PowerShell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/s,/c, lock-bde.bat %1' -Verb runAs\""

(Contents of BAT file for reference)
Code:
@echo off
manage-bde -lock %~d1 -ForceDismount

5 Copy/Move the lock-bde.bat file into the C:\Windows\System32 folder, and click/tap on Continue when prompted to approve. (see screenshot below)

add_lock_drive.png

6 Double click/tap on the Add_Lock_Drive_to_context_menu.reg file to merge it.

7 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

8 You can now delete any remaining files on your desktop if you like.





OPTION TWO

Remove Lock Drive Context Menu from BitLocker Fixed and Removable Data Drives


This is the default setting.


1 Click/tap on the Download button below to download the REG file below.

Remove_Lock_Drive_from_context_menu.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\Drive\shell\lock-bde]

2 Save the .reg file to your desktop.

3 If you have Smart App Control turned on, you will need to unblock the downloaded REG file.

4 Double click/tap on the downloaded .reg file to merge it.

5 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

6 You can now delete the downloaded .reg file if you like.

7 Open the C:\Windows\System32 folder, delete the lock-bde.bat file, and click/tap on Continue when prompted to approve. (see screenshot below)

remove_lock_drive.png


That's it,
Shawn Brink


 

Attachments

Last edited:
Thanks Brink.

The option was added to the right click menu. When I clicked it, I assume the drive closed as it just disappeared from Explorer. Where did it go?

Tom R.
 

My Computers My Computers

  • At a glance

    Windows 11 Pro. Version 23H2, Build 10.0.22631Intel i7-14700KTeamGroup 2 X 32 DDR5 6200AMD Radeon RX7800 XT
    OS
    Windows 11 Pro. Version 23H2, Build 10.0.22631
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-14700K
    Motherboard
    Asus Pro WS W680-ACE
    Memory
    TeamGroup 2 X 32 DDR5 6200
    Graphics Card(s)
    AMD Radeon RX7800 XT
    Sound Card
    Integrated
    Monitor(s) Displays
    43" Samsung. UN43AU8000FF
    Screen Resolution
    4096 X 2160
    Hard Drives
    C: Samsung 980 Pro M.2 Gen 4 2 Tb
    D: Sabrent SB-RKT4P M.2 Gen 4 4 Tb
    Plus 5 additional M.2 Gen4 4 Tb
    PSU
    MSI MPG R10000G
    Case
    Fractal Design FD-CA-Focus
    Cooling
    Cooler Master 240L AIO
    Keyboard
    Logitech MX Keys
    Mouse
    Logitech MX Master 3S
    Internet Speed
    >600 Mbps Down, >50 Mbps Up.
    Browser
    Google Chrome
    Antivirus
    McAfee
    Other Info
    Not a gamer. Just like tinkering. That has been the reason for many hours of searching for solutions!
  • At a glance

    Windows 11 Pro. Version 22H2, Build 22621Intel i7-13700KTeamGroup 2 X 32 DDR5 6200Vision Tek Radeon 7750SFF
    Operating System
    Windows 11 Pro. Version 22H2, Build 22621
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-13700K
    Motherboard
    Asus Tuf Gaming Z790-Pro
    Memory
    TeamGroup 2 X 32 DDR5 6200
    Graphics card(s)
    Vision Tek Radeon 7750SFF
    Sound Card
    Integrated
    Monitor(s) Displays
    43" Samsung. 32" JLink
    Screen Resolution
    4096 X 2160
    Hard Drives
    C: Sabrent Rocket M.2 Gen 4 2 Tb
    D: Addlink S95 M.2 Gen 4 8 Tb
    PSU
    Arsgame AGT Series ATX 1000 Watt
    Case
    Fractal Design FD-CA-Focus
    Cooling
    Cooler Master 240L AIO
    Keyboard
    Logitech MX Keys
    Mouse
    Logitech MX Master 3S
    Internet Speed
    >600 Mbps Down, >50 Mbps Up.
    Browser
    Google Chrome
    Antivirus
    McAfee
    Other Info
    Just built it for something to do. Used mostly for backup for important stuff.
Disregard last stupid comment. Refreshed and it is where it should be.

Sorry, I guess I'm just too impatient!:(
 

My Computers My Computers

  • At a glance

    Windows 11 Pro. Version 23H2, Build 10.0.22631Intel i7-14700KTeamGroup 2 X 32 DDR5 6200AMD Radeon RX7800 XT
    OS
    Windows 11 Pro. Version 23H2, Build 10.0.22631
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-14700K
    Motherboard
    Asus Pro WS W680-ACE
    Memory
    TeamGroup 2 X 32 DDR5 6200
    Graphics Card(s)
    AMD Radeon RX7800 XT
    Sound Card
    Integrated
    Monitor(s) Displays
    43" Samsung. UN43AU8000FF
    Screen Resolution
    4096 X 2160
    Hard Drives
    C: Samsung 980 Pro M.2 Gen 4 2 Tb
    D: Sabrent SB-RKT4P M.2 Gen 4 4 Tb
    Plus 5 additional M.2 Gen4 4 Tb
    PSU
    MSI MPG R10000G
    Case
    Fractal Design FD-CA-Focus
    Cooling
    Cooler Master 240L AIO
    Keyboard
    Logitech MX Keys
    Mouse
    Logitech MX Master 3S
    Internet Speed
    >600 Mbps Down, >50 Mbps Up.
    Browser
    Google Chrome
    Antivirus
    McAfee
    Other Info
    Not a gamer. Just like tinkering. That has been the reason for many hours of searching for solutions!
  • At a glance

    Windows 11 Pro. Version 22H2, Build 22621Intel i7-13700KTeamGroup 2 X 32 DDR5 6200Vision Tek Radeon 7750SFF
    Operating System
    Windows 11 Pro. Version 22H2, Build 22621
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-13700K
    Motherboard
    Asus Tuf Gaming Z790-Pro
    Memory
    TeamGroup 2 X 32 DDR5 6200
    Graphics card(s)
    Vision Tek Radeon 7750SFF
    Sound Card
    Integrated
    Monitor(s) Displays
    43" Samsung. 32" JLink
    Screen Resolution
    4096 X 2160
    Hard Drives
    C: Sabrent Rocket M.2 Gen 4 2 Tb
    D: Addlink S95 M.2 Gen 4 8 Tb
    PSU
    Arsgame AGT Series ATX 1000 Watt
    Case
    Fractal Design FD-CA-Focus
    Cooling
    Cooler Master 240L AIO
    Keyboard
    Logitech MX Keys
    Mouse
    Logitech MX Master 3S
    Internet Speed
    >600 Mbps Down, >50 Mbps Up.
    Browser
    Google Chrome
    Antivirus
    McAfee
    Other Info
    Just built it for something to do. Used mostly for backup for important stuff.
Disregard last stupid comment. Refreshed and it is where it should be.

Sorry, I guess I'm just too impatient!:(
No worries Tom. I'm glad it could help. :-)
 

My Computers My Computers

  • At a glance

    Windows 11 Pro for WorkstationsIntel i7-8700K 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GD...
    OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    TerraMaster F8 SSD Plus NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Amazon Basics Wired Full Keyboard MD005
    Mouse
    Logitech MX Master 4
    Internet Speed
    2 Gbps Download and 100 Mbps Upload
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    CyberPower CP1500PFCLCD
    Galaxy S23 Plus phone
  • At a glance

    Windows 11 ProSnapdragon X Elite (12 core) 3.42 GHz16 GB LPDDR5x-7467 MHz
    Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
I sent you a message about this, but I followed option 1 and it worked up until I would try to lock that drive. I would get a message from the user control asking if I was okay for this app to make changes to the computer, I would click yes but the drive would still be unlocked. I do not know what I did wrong so i removed it.
 

My Computer My Computer

At a glance

Windows 11Pro
OS
Windows 11Pro
Computer type
Laptop
Manufacturer/Model
HP Envy x360
I sent you a message about this, but I followed option 1 and it worked up until I would try to lock that drive. I would get a message from the user control asking if I was okay for this app to make changes to the computer, I would click yes but the drive would still be unlocked. I do not know what I did wrong so i removed it.
Hello, and welcome. :alien:

As a test, does it lock the drive if you manually lock it using option 2 or 3 below instead?

 

My Computers My Computers

  • At a glance

    Windows 11 Pro for WorkstationsIntel i7-8700K 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GD...
    OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    TerraMaster F8 SSD Plus NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Amazon Basics Wired Full Keyboard MD005
    Mouse
    Logitech MX Master 4
    Internet Speed
    2 Gbps Download and 100 Mbps Upload
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    CyberPower CP1500PFCLCD
    Galaxy S23 Plus phone
  • At a glance

    Windows 11 ProSnapdragon X Elite (12 core) 3.42 GHz16 GB LPDDR5x-7467 MHz
    Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
yes it locks with option 2, but this is a very long way to lock the drive.
 

My Computer My Computer

At a glance

Windows 11Pro
OS
Windows 11Pro
Computer type
Laptop
Manufacturer/Model
HP Envy x360
yes it locks with option 2, but this is a very long way to lock the drive.

Good. That's the same command the BAT file uses when ran by the context menu.

As a test, remove the context menu and start completely over being sure to unblock the BAT file before moving it into the Windows folder to see if it may work this round.
 

My Computers My Computers

  • At a glance

    Windows 11 Pro for WorkstationsIntel i7-8700K 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GD...
    OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    TerraMaster F8 SSD Plus NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Amazon Basics Wired Full Keyboard MD005
    Mouse
    Logitech MX Master 4
    Internet Speed
    2 Gbps Download and 100 Mbps Upload
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    CyberPower CP1500PFCLCD
    Galaxy S23 Plus phone
  • At a glance

    Windows 11 ProSnapdragon X Elite (12 core) 3.42 GHz16 GB LPDDR5x-7467 MHz
    Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
@Brink
When I choose to lock the drive, a "User Account Control" box appears. It shows "Windows Command Processor".
To continue, I have to choose "yes".
Is there anything I can do so that the locking continues without me having to interact with that box?
There was no box appearing when I was using Windows 10 & I locked the same BitLocker drive using your tutorial:
 

My Computer My Computer

At a glance

Windows 11 Pro 25H2 Version 10.0.26200 Build ...AMD Ryzen AI 7 350 w/ Radeon 860M (2.00 GHz)Hynix 32 GBAMD Radeon 860M
OS
Windows 11 Pro 25H2 Version 10.0.26200 Build 26200
Computer type
Laptop
Manufacturer/Model
Lenovo YOGA-SLIM-7 (10th Gen) 14"-14AKP10
CPU
AMD Ryzen AI 7 350 w/ Radeon 860M (2.00 GHz)
Motherboard
Lenovo
Memory
Hynix 32 GB
Graphics Card(s)
AMD Radeon 860M
Sound Card
Realtek Audio
Monitor(s) Displays
OLED
Screen Resolution
1920 x 1200
Hard Drives
SSD 1TB SAMSUNG MZAL81T0HFLB-00BL2
Internet Speed
Fibre 500/300
Browser
Google Chrome & Firefox & Brave & Edge
Antivirus
Windows Security
@Brink
When I choose to lock the drive, a "User Account Control" box appears. It shows "Windows Command Processor".
To continue, I have to choose "yes".
Is there anything I can do so that the locking continues without me having to interact with that box?
There was no box appearing when I was using Windows 10 & I locked the same BitLocker drive using your tutorial:

Hello, :alien:

This is normal to get the UAC prompt to approve since the context menu requires elevated rights to run a command to lock the drive.
 

My Computers My Computers

  • At a glance

    Windows 11 Pro for WorkstationsIntel i7-8700K 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GD...
    OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    TerraMaster F8 SSD Plus NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Amazon Basics Wired Full Keyboard MD005
    Mouse
    Logitech MX Master 4
    Internet Speed
    2 Gbps Download and 100 Mbps Upload
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    CyberPower CP1500PFCLCD
    Galaxy S23 Plus phone
  • At a glance

    Windows 11 ProSnapdragon X Elite (12 core) 3.42 GHz16 GB LPDDR5x-7467 MHz
    Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
Hello, :alien:

This is normal to get the UAC prompt to approve since the context menu requires elevated rights to run a command to lock the drive.
Thanks for your answer. I take it then that there is no workaround to bypass that prompt for this one particular action?
 

My Computer My Computer

At a glance

Windows 11 Pro 25H2 Version 10.0.26200 Build ...AMD Ryzen AI 7 350 w/ Radeon 860M (2.00 GHz)Hynix 32 GBAMD Radeon 860M
OS
Windows 11 Pro 25H2 Version 10.0.26200 Build 26200
Computer type
Laptop
Manufacturer/Model
Lenovo YOGA-SLIM-7 (10th Gen) 14"-14AKP10
CPU
AMD Ryzen AI 7 350 w/ Radeon 860M (2.00 GHz)
Motherboard
Lenovo
Memory
Hynix 32 GB
Graphics Card(s)
AMD Radeon 860M
Sound Card
Realtek Audio
Monitor(s) Displays
OLED
Screen Resolution
1920 x 1200
Hard Drives
SSD 1TB SAMSUNG MZAL81T0HFLB-00BL2
Internet Speed
Fibre 500/300
Browser
Google Chrome & Firefox & Brave & Edge
Antivirus
Windows Security
Thanks for your answer. I take it then that there is no workaround to bypass that prompt for this one particular action?

I'm afraid not. The action to open an elevated command prompt to run the command will trigger UAC approval.
 

My Computers My Computers

  • At a glance

    Windows 11 Pro for WorkstationsIntel i7-8700K 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GD...
    OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    TerraMaster F8 SSD Plus NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Amazon Basics Wired Full Keyboard MD005
    Mouse
    Logitech MX Master 4
    Internet Speed
    2 Gbps Download and 100 Mbps Upload
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    CyberPower CP1500PFCLCD
    Galaxy S23 Plus phone
  • At a glance

    Windows 11 ProSnapdragon X Elite (12 core) 3.42 GHz16 GB LPDDR5x-7467 MHz
    Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Microsoft Defender
I'm afraid not. The action to open an elevated command prompt to run the command will trigger UAC approval.
Thanks, I will just have to live with it. lol.
 

My Computer My Computer

At a glance

Windows 11 Pro 25H2 Version 10.0.26200 Build ...AMD Ryzen AI 7 350 w/ Radeon 860M (2.00 GHz)Hynix 32 GBAMD Radeon 860M
OS
Windows 11 Pro 25H2 Version 10.0.26200 Build 26200
Computer type
Laptop
Manufacturer/Model
Lenovo YOGA-SLIM-7 (10th Gen) 14"-14AKP10
CPU
AMD Ryzen AI 7 350 w/ Radeon 860M (2.00 GHz)
Motherboard
Lenovo
Memory
Hynix 32 GB
Graphics Card(s)
AMD Radeon 860M
Sound Card
Realtek Audio
Monitor(s) Displays
OLED
Screen Resolution
1920 x 1200
Hard Drives
SSD 1TB SAMSUNG MZAL81T0HFLB-00BL2
Internet Speed
Fibre 500/300
Browser
Google Chrome & Firefox & Brave & Edge
Antivirus
Windows Security
Good. That's the same command the BAT file uses when ran by the context menu.

As a test, remove the context menu and start completely over being sure to unblock the BAT file before moving it into the Windows folder to see if it may work this round.
I only got it to work once the lock-bde was copied to the system32 folder. I am using Windows 11 and the option to manually lock(option 2) worked. Just the right click option would not lock it.
 
Last edited:

My Computer My Computer

At a glance

Windows 11 ProIntel i9 12th Gen48GbNvidia RTX3070
OS
Windows 11 Pro
Computer type
PC/Desktop
Manufacturer/Model
HP Envy TE02-0042
CPU
Intel i9 12th Gen
Motherboard
Blizzard
Memory
48Gb
Graphics Card(s)
Nvidia RTX3070

Latest Support Threads

Back
Top Bottom