Get-SmbServerCertProps

Retrieves an SMB over QUIC-mapped certificate's properties and tests certificate validity.

Syntax

Get-SmbServerCertProps
   -Name <String>
   -Force <CommonParameters>

Description

The Get-SmbServerCertProps cmdlet retrieves the properties of a certificate associated with the SMB server for SMB over QUIC. For more information, see SMB over QUIC.

Examples

Example 1 - Retrieve the properties of a certificate associated with the SMB server

This command retrieves the properties and validity of the 2025-srv-01.corp.contoso.com SMB over QUIC endpoint certificate mapping.

Get-SmbServerCertProps -Name 2025-srv-01.corp.contoso.com

Checking Mapping '2025-srv-01.corp.contoso.com'.....
SMBServerCertificateMappingName : 2025-srv-01.corp.contoso.com
SelfSigned                      : True
SubjectName                     : System.Security.Cryptography.X509Certificates.X500DistinguishedName
Subject                         : CN=2025-srv-01
SubjectOid                      : System.Security.Cryptography.Oid
SubjectRawData                  : {48, 21, 49, 19...}
FriendlyName                    :
SignatureAlgorithm              : 1.2.840.113549.1.1.11 sha256RSA
Thumbprint                      : 88032B3551FAF7DE26EFFFF814AA086E3DBD2A4F
NotBefore                       : 8/20/2021 3:02:16 PM
NotAfter                        : 8/20/2022 3:02:16 PM
SendAsTrustedIssuer             : False
PublicKey                       : System.Security.Cryptography.X509Certificates.PublicKey
DnsNameList                     : {2025-srv-01.corp.contoso.com, fs1.contoso.com}

Test-Certificate result : PASS

RenewalChain:

Testing certificates in the RenewalChain.....

Parameters

-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Specifies 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.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Object