Click here to Skip to main content
15,901,687 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Everyone.

I have written a code to backup a database to drive E on my office computer.

But for security reasons the drive is locked with bitlocker and I know the password.
But when I try to backup the database without unlocking it obviously it does nothing.

So can you guys help me and suggest a way to unlock the drive with a button click in vb.net?

Thanks a lot
Posted
Updated 2-Oct-11 7:39am
v2

1 solution

It looks like you can use the Win32_EncryptableVolume class[^], have a look at the the unlock functions.

UnlockWithCertificateFile[^]
Uses the provided certificate file to obtain the derived key and unlock the encrypted volume.

UnlockWithCertificateThumbprint
[^]
Uses the provided certificate thumbprint to obtain the derived key and unlock the encrypted volume.

UnlockWithExternalKey[^]
Uses a provided external key to access the contents of a data volume.

UnlockWithNumericalPassword[^]
Uses a provided numerical password to access the contents of a data volume.


UnlockWithPassphrase
[^]
Uses the passphrase to obtain the derived key. After the derived key is calculated, the derived key is used to unlock the encrypted volume's master key.
 
Share this answer
 
Comments
Simon Bang Terkildsen 2-Oct-11 13:38pm    
My 5
André Kraak 2-Oct-11 13:50pm    
Thanks.
Janaka Medawala 3-Oct-11 8:48am    
Thank you for your help.But I am a beginner and dont understand the code.Can you please show me how to use it in a code?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900