Jump to content
Sign in to follow this  
iburnell

manage-bde.exe

Recommended Posts

iburnell

I am trying to capture a simple script. Manage-bde.exe is a command line tool to enable bitlocker.

From a dos prompt I would enter manage-bde.exe -on Z: -pw

This says enable bitlocker on the Z partition and set a password

It thens prompts you to enter a password and confirm - this is why I want to set up an au3.exe script so I can automate it

So with the script editor I'm simply trying to enter Run("manage-bde.exe -on Z: -pw") but not having much success

If I compile the script and run as administrator then I get a dos box up asking for the password. problem is I'm trying to run it properly i.e. inteactively so I can capture the syntax back to prompt for the password and then carry on from there

What am I doing worng?

Share this post


Link to post
Share on other sites
ArdonTares

If you have 64bit Windows add this:

 
 
#include <WinAPIFiles.au3>
_WinAPI_Wow64EnableWow64FsRedirection(False)
 
Cause of this problem is that:
 
 
I use AutoIt to lock my F: drive
 
Local $rc = _RunDos("manage-bde -lock f:")
 
Return values:
$rc = 0                        Drive is successfully locked.
$rc = -2147024891     Drive lock fail. Some file is opened.
$rc = -2144272384     Drive is already locked.     

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×