ercicttech Posted April 12, 2022 Posted April 12, 2022 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?
Developers Solution Jos Posted April 12, 2022 Developers Solution Posted April 12, 2022 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 mLipok 1 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.
ercicttech Posted April 12, 2022 Author Posted April 12, 2022 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.
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