By the way, my PS version is V2(CTP2)
Thanks a lot.
ls | select -expand Extensions |
select KeyUsages,EnhancedKeyUsages
--or--
ls | Format-List FriendlyName, Subject, @{l="Usages";e={
foreach($key in $_.Extensions){
if($key.KeyUsages){$key.KeyUsages}
if($key.EnhancedKeyUsages){$key.EnhancedKeyUsages}
}
}}
For some reason, this seems to miss the data on some keys where it still
shows up on the certificate property dialog ... not sure what to do
about that. Maybe someone else has a better clue :)
--
Joel