Hello,
I am trying to retrieve the SAN of few of my certificates using PowerShell whether the Cert has a SAN or not.
Below is what I have so far:
$Servers = "WebServer01",
"WebServer02",
"WebServer03"
Invoke-Command -ComputerName $Servers -ScriptBlock {Get-ChildItem -Recurse Cert:\LocalMachine\My | select subject,NotBefore, notafter, Issuer, Thumbprint,HasPrivateKey, SubjectAlternativeName}
I am getting output from all fields except the SAN "SubjectAlternativeName". Could someone help advise me what else I am missing?