Solved .bat file doesn't work without admin permissions

PhantomJedi

New member
Local time
12:27 PM
Messages
10
Location
Adelaide Hills
Hi All,

I have bitlocker and have found a guide to allowing me to right click on the drive to relock it; it is done via a .bat file. http://www.sevenforums.com/tutorials/90815-bitlocker-lock-unlocked-drive.html

Unfortunately this .bat file will only run if I right click on it and 'run as administrator', yet my account is administrator.
Any way to solve this problem so I can simply right click on the hard drive and 'Lock' it?

James
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 7 Ultimate x64
CPU
Intel® Core™ i5-4590 CPU @ 3.30GHz
Motherboard
MSI B85-G43 GAMING (MS-7816)
Memory
4 * Kingston 8192 MB (DDR3-1600)
Graphics Card(s)
AMD Radeon R9 270
Browser
Firefox 47
Hello James, and welcome to Seven Forums. :)

This is normal. An administrator accounts doesn't have elevated rights by default. You will need to provide UAC permission when you run anything elevated (run as administrator) for security reasons. This gives you control over what can run elevated or not.

If you like, the tutorial below may help make what you want to do easier.

"Lock Drive" - Add to Context Menu of BitLocker Drives
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Hi Brink,

Thanks for that, I did the tutorial you linked too and it now works.

I cannot understand why this option is not in windows by default? My kids use this computer often and I have 'naughty' pictures (for research :P ) on a separate hard drive so I need this locked when I walk away from the computer.

James
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 7 Ultimate x64
CPU
Intel® Core™ i5-4590 CPU @ 3.30GHz
Motherboard
MSI B85-G43 GAMING (MS-7816)
Memory
4 * Kingston 8192 MB (DDR3-1600)
Graphics Card(s)
AMD Radeon R9 270
Browser
Firefox 47
I'm not sure why MS doesn't have it by default since it would make it much easier, but I'm glad this was able to help. :)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Back
Top