run .bat file to unlock bitlocker drive BEFORE user login


  1. Posts : 3
    Windows 7 64 bit
       #1

    run .bat file to unlock bitlocker drive BEFORE user login


    Folks,

    Many hours of googling have not yet yielded a solution...

    I have a .bat file that requests input of the PIN to unlock a bitlocker encrypted partition.
    I would like to run this before windows LOGON (ask for password during boot).
    This is because I placed several of the user directories (desktop etc) onto that partition.
    If I do not unlock the drive before login, desktop does not load, and other startup programs (e.g., dropbox, skydrive) cannot access their folders and fail.

    I have tried scheduling a task at start up, without success.
    The bat file needs to be run as administrator - but even when I indicate "run with highest privilege" it won't run properly.

    I have basic knowledge or task scheduler, cmd line, and registry editing (BASIC knowledge...).
    So any help you can provide (with details) would be much appreciated!

    Gowanus
      My Computer


  2. Posts : 1,216
    Windows 7 Ultimate 64-bit
       #2

    Hi gowanus and welcome to Seven Forums.

    Here of MS site they have something it's for windows 2000 but might help in what you need How to Run a Batch File Before Logging on to Your Computer
      My Computer


  3. Posts : 1,216
    Windows 7 Ultimate 64-bit
       #3

    ah found something else also:
    Use the Group policy editor.
    %systemroot%\system32\gpedit.msc

    User Config\Windows Settings\Scripts\Logon/Logoff
    Computer Config\Windows Settings\Scripts\Startup/Shutdown


    So basically go to group policy by typing in the search bar "gpedit.msc" then the following path "computer config\windows settings\ scripts\ startup/shutdown
      My Computer


  4. Posts : 3
    Windows 7 64 bit
    Thread Starter
       #4

    benjy206 said:

    So basically go to group policy by typing in the search bar "gpedit.msc" then the following path "computer config\windows settings\ scripts\ startup/shutdown
    Thanks for trying to help.
    I have been fiddling around with that for quite a while - no luck.
    Script does not seem to run - neither at startup or logon.

    I disables UAC just in case.
    BTW, script rund fine when double clicked directly.
    It really isn't that complicated:

    "
    @echo off
    manage-bde D: -unlock -password
    pause
    "

    Any additional help is appreciated.
    Gowanus
      My Computer


  5. Posts : 1,216
    Windows 7 Ultimate 64-bit
       #5

    Hmm I will keep looking other than that I can't answer at the moment maybe someone might be nice enough to jump in. But will get back to you
      My Computer


  6. Posts : 1,216
    Windows 7 Ultimate 64-bit
       #6

    Ok after this I'm all out of ideas

    How To Create a User-Defined Service

    I know it says you can't create batch file but if you read here http://www.tomshardware.co.uk/forum/...-windows-loads
      My Computer


  7. Posts : 3
    Windows 7 64 bit
    Thread Starter
       #7

    Could not get any of this to work. Thanks a lot for trying, though.
    If anyone else comes up with a usable approach for unlocking bitlocker (non so partition) before login, please let me know.
    Thanks!
      My Computer


  8. Posts : 19
    Windows 7 64 bit Ultimate
       #8

    Why don't you disable bitlocker on the partition\s users should have access. What is the point of encrypting it if the encryption shoud be gone befor the user logs on. I think the point of using bitlocker is so users must provide a password when they access a certain drive...
      My Computer


  9. Posts : 19
    Windows 7 64 bit Ultimate
       #9

    What accont have you used to run the schedlued task, have you tried the system account?
      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 18:11.
Find Us