How to check if PowerShell result contains these words
I’m doing an IF statement in PowerShell and at some point I do this: (Get-BitlockerVolume -MountPoint "C:").KeyProtector.keyprotectortype which gives me the results in this format, on top of each other I want to write my IF statement to check whether the output of the command above contains both "TpmPin" and "RecoveryPassword" but not sure what… Read More How to check if PowerShell result contains these words