CmdID / PowerShell / Cmdlets / Test
Test-Certificate
Verifies a certificate according to the input parameters. Windows Server PowerShell reference
From the Windows Server PowerShell reference 6 parameters Its page in the reference
Parameters
-AllowUntrustedRootSpecifies whether the root certificate is required to be trusted in chain building.-Cert, -PsPathSpecifies the certificate to test.-DNSNameSpecifies the DNS name to verify as valid for the certificate.-EKUSpecifies a list of enhanced key usage (EKU) object identifiers to verify for the certificate chain.-PolicySpecifies the policies that will be applied to verify the certificate.-UserSpecifies whether the user or machine context is used to test the certificate.