iburnell Posted February 25, 2013 Posted February 25, 2013 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?
ArdonTares Posted March 13, 2014 Posted March 13, 2014 If you have 64bit Windows add this: #include <WinAPIFiles.au3> _WinAPI_Wow64EnableWow64FsRedirection(False) Cause of this problem is that: http://ovidiupl.wordpress.com/2008/07/11/useful-wow64-file-system-trick/ 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.
randhir_singh Posted November 19, 2019 Posted November 19, 2019 I had the same issue, I ended up using powershell. The command to run is- Enable-BitLocker -MountPoint c: -EncryptionMethod aes256 -Password ("the password that user wants" | ConvertTo-SecureString -AsPlainText -Force) -PasswordProtector
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now