While you wait for PowerShell to add support for ternary operators, here's a method you can use now to evaluate Boolean conditions without the need to write If – Then – Else statements. If you have ...
So I'm working with Powershell trying to query TPM data from computer objects. I'm having an issue where, when there is no TPM data for a given object, which should be NULL, it evaluates to not NULL.