Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: run .bat file to unlock bitlocker drive BEFORE user login

07 Apr 2013   #1

Windows 7 64 bit
 
 
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 System SpecsSystem Spec
.

07 Apr 2013   #2

Windows 7 Ultimate 64-bit
 
 

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 System SpecsSystem Spec
07 Apr 2013   #3

Windows 7 Ultimate 64-bit
 
 

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 System SpecsSystem Spec
.


07 Apr 2013   #4

Windows 7 64 bit
 
 

Quote   Quote: Originally Posted by benjy206 View Post

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 System SpecsSystem Spec
07 Apr 2013   #5

Windows 7 Ultimate 64-bit
 
 

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 System SpecsSystem Spec
07 Apr 2013   #6

Windows 7 Ultimate 64-bit
 
 

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 System SpecsSystem Spec
08 Apr 2013   #7

Windows 7 64 bit
 
 

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 System SpecsSystem Spec
09 Apr 2013   #8

Windows 7 64 bit Ultimate
 
 

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 System SpecsSystem Spec
09 Apr 2013   #9

Windows 7 64 bit Ultimate
 
 

What accont have you used to run the schedlued task, have you tried the system account?
My System SpecsSystem Spec
Reply

 run .bat file to unlock bitlocker drive BEFORE user login




Thread Tools




Our Sites

Site Links

About Us

Find 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 03:39 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33