CmdID / PowerShell / Cmdlets / Get
Get-SmbServerCertProps
Retrieves an SMB over QUIC-mapped certificate's properties and tests certificate validity. Windows Server PowerShell reference
From the Windows Server PowerShell reference 2 parameters Its page in the reference
Parameters
-ForceForces the command to run without asking for user confirmation.-NameSpecifies a fully-qualified DNS name or NetBIOS name that must match the certificate's subject name or an entry in the certificate's subject alternative names.