+ Reply to Thread
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23

Thread: Detect if PC has BitLocker enabled?

  1. #11

    Default Re: Detect if PC has BitLocker enabled?

    Hello Friedrich,

    Is there a way to see what the "Run command line" output is? Because I am executing a command on the setup and for some reason it doesn't work, but that same command on CMD works fine. I even added a > to output but it ends up empty. Here is what I tell the program to do:

    cmd.exe /C manage-bde -on D: -RecoveryKey C: -RecoveryPassword > "C:\.uzencrypt.txt"

    Alejandro

  2. #12
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Detect if PC has BitLocker enabled?

    Alejandro,

    I think this is an interesting method:

    http://www.lindersoft.com/forums/sho...8299#post78299

    Friedrich

  3. #13

    Default Re: Detect if PC has BitLocker enabled?

    Hello Friedrich,

    I tried that but the file turns out empty. Here is what the line is set to do:


    Alejandro

  4. #14
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Detect if PC has BitLocker enabled?

    Alejandro,

    That simply means that the command line did nothing Windows handles the redirection into the file. So if the file is empty, the command line output was empty

    Friedrich

  5. #15
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Detect if PC has BitLocker enabled?

    BTW, I think your command line is incorrect. You need a fully qualified path specification to the manage-bde.exe location in Windows.

    Friedrich

  6. #16

    Default Re: Detect if PC has BitLocker enabled?

    Quote Originally Posted by linder View Post
    BTW, I think your command line is incorrect. You need a fully qualified path specification to the manage-bde.exe location in Windows.

    Friedrich
    That's weird... If the setup runs in "elevated", in theory manage-bde should start form system32 and I already specify it by adding %SYS32DIR%...


    Alejandro.

  7. #17
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Detect if PC has BitLocker enabled?

    Alejandro,

    Yes, in theory <g>. But all this has nothing to do with your elevated running setup. You need the correct specification for the "CreateProcess" API (you are using this now) or the "ShellExecuteEx" API call.

    BTW, I see quite a few references to "cmd.exe /c %WINDIR%\sysnative\manage-bde.exe -status" yada yada on Google. Perhaps you have to use something similar to this. I have never used "manage-bde.exe" so unfortunately, I can't tell you what the correct parameters and switches are.

    Friedrich

  8. #18

    Default Re: Detect if PC has BitLocker enabled?

    Friedrich,

    The parameters sent to manage-bde are correct, I tested them on a CMD before putting them on the line of code. Is it possible to make a .bat file and make the installer run it as administrator? If so, I'll just make the .bat and it seems to work when I do so.

    Alejandro.

  9. #19
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Detect if PC has BitLocker enabled?

    Alejandro,

    There is as fundamental difference between CMD and calling from an application!!! Your >output.txt was emty; this means the parameters and/or calling method were incorrect

    See my previous post. Perhaps you have to use %WINDIR%\sysnative\manage-bde.exe?

    Friedrich

  10. #20
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Detect if PC has BitLocker enabled?

    "sysnative" is the important part here. Perhaps "manage-bde.exe" is a 64-bit tool? Sysnative is a virtual folder, a special alias, that can be used to access the 64-bit
    System32 folder from a 32-bit application or script. Using the 'Sysnative' folder will help you access 64-bit tools from 32-bit code

    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •