Jump to content

manage-bde.exe


iburnell
 Share

Recommended Posts

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?

Link to comment
Share on other sites

  • 1 year later...

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.     
Link to comment
Share on other sites

  • 5 years later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...