Jump to content

Non-elevated Bitlocker status?


Go to solution Solved by Jos,

Recommended Posts

I'm looking for a way to detect if drive C: is encrypted with Bitlocker.
I originally was going to pipe manage-bde, but it requires elevation.

I found a website which had a Powershell script which appears to run without elevation.
 

(New-Object -ComObject Shell.Application).NameSpace('C:').Self.ExtendedProperty('System.Volume.BitLockerProtection')


I'm trying to convert that into AutoIt by messing about with one of the examples in the help guide, but without much success.

Any chance some kind soul could put me out of my misery?

Link to comment
Share on other sites

  • Developers
  • Solution

Something like this? (I can't really test as I have no Bitlocker encrypted disk) 

$oShell = ObjCreate("Shell.Application")
$sBitLocker = $oShell.Namespace("c:").Self.ExtendedProperty('System.Volume.BitLockerProtection')
ConsoleWrite("System.Volume.BitLockerProtection: " & $sBitLocker & @CRLF)

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

15 minutes ago, Jos said:

Something like this? (I can't really test as I have no Bitlocker encrypted disk) 

$oShell = ObjCreate("Shell.Application")
$sBitLocker = $oShell.Namespace("c:").Self.ExtendedProperty('System.Volume.BitLockerProtection')
ConsoleWrite("System.Volume.BitLockerProtection: " & $sBitLocker & @CRLF)

Jos

Fantastic!!

Thank you very much for the really quick reply.

Very much appreciated.

Link to comment
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
 Share

  • Recently Browsing   0 members

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