Dec 19 2023 01:27 PM
Hello,
The followed code work without problem to return "On" if bitlocker is well present.
But when this is use as detection method it looks like not supported !!!
$BitlockerStatus = (Get-BitLockerVolume -MountPoint "c:").ProtectionStatus
if($BitlockerStatus -eq "On")
{
return "installed"
}
somebody knows about
Dec 20 2023 05:24 AM
Start by adding logging to your script and review the results. that will give you more details as to what is happening.
Dec 20 2023 01:06 PM
Dec 20 2023 04:54 PM
Exactly what are the results of the bitlocker query?
Dec 20 2023 11:06 PM
Hi,
if your machine is using bitlocker you can easily try the script. If present you will get "installed" if not nothing. Like this you can see that this is working fine, but when this is used in Configuration Manager as detection method for an application looks like the script is not working at all and I have then next print screen in software center in the application installation screen.
Dec 21 2023 05:49 AM
Dec 21 2023 05:58 AM
Dec 21 2023 06:24 AM
Dec 21 2023 07:19 AM
Configuration Manager/application management/applications
Deployment type/type script in Powershell/
The program inself is a powershell script about Bitlocker for existing laptop previoulsy used with mbam and new laptop not using mbam...
There is a detection Method also in powershell
This a short version of the script I'm using because more checks are done. But if the script is like this The application shows in the status : "This software is not applicable to your device"
$BitlockerStatus = (Get-BitLockerVolume -MountPoint "c:").ProtectionStatus
if($BitlockerStatus -eq "On")
{
return $true
}
Dec 21 2023 10:02 AM