I need a PS script that will result with True or False depending if TpmPin exists within 'KeyProtector' (see attached pic)
I have tried:
$res3 = Get-BitLockerVolume -MountPoint C
if ($res3 -like 'Tpm'){write 'True'} else {write 'false'}
but always get 'false' even though the value is there. see screen shot
I've tried some example snippets found elsewhere on this site and they work:
$coll = 'one','two','three','four'
if ($coll -contains 'two'){write 'True'} else {write 'false'}
this returns T/F as needed.
What am I doing wrong? Thanks