Forum Discussion
Michels12345
Dec 19, 2023Copper Contributor
detection method for bitlocker failed
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-Bi...
Garth-MVP
Iron Contributor
Let me try this again...
As I understand it, you are saying that you have tested this script on a device, and you get the right results. Then you deploy this same script via ConfigMgr to the same device, and you are getting different results.
As such you need to change you script to add logging to see the results of $BitlockerStatus even better you break it down to show the full results of Get-BitLockerVolume then filter the results.
As I understand it, you are saying that you have tested this script on a device, and you get the right results. Then you deploy this same script via ConfigMgr to the same device, and you are getting different results.
As such you need to change you script to add logging to see the results of $BitlockerStatus even better you break it down to show the full results of Get-BitLockerVolume then filter the results.
Michels12345
Dec 21, 2023Copper Contributor
Yes I understand your point, but the script don't start at all. Like the software center refuse to run this script !
I dont have another CM to test, but if you have one just use this detection method for any other software, you dont need to start the installation.
I dont have another CM to test, but if you have one just use this detection method for any other software, you dont need to start the installation.
- Garth-MVPDec 21, 2023Iron ContributorWhat do the log say as to why it is failing? How exactly did you setup the deployment? Are we talking about an application or program?
- Michels12345Dec 21, 2023Copper Contributor
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
}- Garth-MVPDec 21, 2023Iron ContributorAnd what do the logs say is happening?