[SOLVED] tis-audit-bitlocker, external hard drive
Published: March 7, 2025 - 12:36
Good morning,
https://wapt.tranquil.it/store/fr/tis-audit-bitlocker
I have noticed a number of false positives when an external USB hard drive is plugged in.
Indeed, to exclude them you use:
Here is an example of a false positive:
You could also potentially base your decision on the bus type:
Sincerely,
https://wapt.tranquil.it/store/fr/tis-audit-bitlocker
I have noticed a number of false positives when an external USB hard drive is plugged in.
Indeed, to exclude them you use:
Code: Select all
if run_powershell("Get-Volume -DriveLetter %s | Where-Object DriveType -EQ Removable" % mountpoint.replace(":", "")):Code: Select all
Get-Volume -DriveLetter E
DriveLetter FriendlyName FileSystemType DriveType HealthStatus OperationalStatus SizeRemaining Size
----------- ------------ -------------- --------- ------------ ----------------- ------------- ----
E FREECOM FAT32 [b]Fixed [/b]Healthy OK 536.38 GB 931.28 GB
Code: Select all
if run_powershell("(Get-PhysicalDisk | Where-Object BusType -EQ USB | ForEach-Object { Get-Disk -Number $_.DeviceId | Get-Partition | Get-Volume } | Where-Object DriveLetter -EQ '%s').DriveLetter -ne $null" % mountpoint.replace(":", ""))