.bat file doesn't work without admin permissions


  1. Posts : 10
    Windows 7 Ultimate x64
       #1

    .bat file doesn't work without admin permissions


    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. Bitlocker - Lock an Unlocked Drive

    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


  2. Posts : 72,058
    64-bit Windows 11 Pro for Workstations
       #2

    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


  3. Posts : 10
    Windows 7 Ultimate x64
    Thread Starter
       #3

    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


  4. Posts : 72,058
    64-bit Windows 11 Pro for Workstations
       #4

    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


 

  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 11:12.
Find Us