Skip to content

Commit 12460db

Browse files
authored
Merge pull request #3789 from Xelu86/Update_SmbServerCertificateMapping
Added new parameters for SmbServerCertificateMapping
2 parents dc95fa9 + f96fa9c commit 12460db

4 files changed

+440
-102
lines changed

docset/winserver2025-ps/smbshare/Get-SmbServerCertificateMapping.md

+97-17
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: Use this topic to help manage Windows and Windows Server technologies with Windows PowerShell.
33
external help file: SmbServerCertificateMapping.cdxml-help.xml
44
Module Name: SmbShare
5-
ms.date: 08/31/2021
5+
ms.date: 02/22/2024
66
online version: https://learn.microsoft.com/powershell/module/smbshare/get-smbservercertificatemapping?view=windowsserver2025-ps&wt.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Get-SmbServerCertificateMapping
@@ -16,23 +16,29 @@ Retrieves a certificate associated with the SMB server for SMB over QUIC.
1616
## SYNTAX
1717

1818
```
19-
Get-SmbServerCertificateMapping [[-Name] <String[]>] [[-Subject] <String[]>] [-Thumbprint <String[]>]
20-
[-DisplayName <String[]>] [-StoreName <String[]>] [-Type <Type[]>] [-Flags <Flags[]>] [-IncludeHidden]
21-
[-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-AsJob] [<CommonParameters>]
19+
Get-SmbServerCertificateMapping [[-Name] <String[]>] [[-Subject] <String[]>]
20+
[-Thumbprint <String[]>] [-DisplayName <String[]>] [-StoreName <String[]>] [-Type <Type[]>]
21+
[-Flags <Flags[]>] [-RequireClientAuthentication <Boolean[]>]
22+
[-SkipClientCertificateAccessCheck <Boolean[]>] [-IncludeHidden] [-CimSession <CimSession[]>]
23+
[-ThrottleLimit <Int32>] [-AsJob] [<CommonParameters>]
2224
```
2325

2426
## DESCRIPTION
25-
The **Get-SmbServerCertificateMapping** cmdlet retrieves the certificates associated with the SMB server for SMB over QUIC on ‘Windows Server 2022 Datacenter: Azure Edition’. This cmdlet is not used for Windows or other Windows Server editions. For more information, review [SMB over QUIC](https://aka.ms/smboverquic).
27+
28+
The `Get-SmbServerCertificateMapping` cmdlet retrieves the certificates associated with the SMB
29+
server for SMB over QUIC. For more information, see [SMB over QUIC](https://aka.ms/smboverquic).
2630

2731
## EXAMPLES
2832

2933
### Example 1 - Retrieve the certificate mapped to two SMB over QUIC server names
3034

31-
This command retrieves the certificate mapped to two SMB over QUIC server names that clients can connect to, `fs2.contoso.com` and `2022-ae-02.corp.contoso.com`.
35+
This command retrieves the certificate mapped to two SMB over QUIC server names that clients can
36+
connect to, `fs2.contoso.com` and `2022-ae-02.corp.contoso.com`.
3237

3338
```powershell
34-
PS C:\> Get-SmbServerCertificateMapping
39+
Get-SmbServerCertificateMapping
3540
```
41+
3642
```output
3743
Name Subject Thumbprint DisplayName StoreName Type Flags
3844
---- ------- ---------- ----------- --------- ---- -----
@@ -43,7 +49,9 @@ fs2.contoso.com CN=2022-ae-02 88032B3551FAF7DE26EFFFF814AA086E3DBD2A
4349
## PARAMETERS
4450

4551
### -AsJob
46-
Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete.
52+
53+
Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to
54+
complete.
4755

4856
```yaml
4957
Type: SwitchParameter
@@ -58,7 +66,11 @@ Accept wildcard characters: False
5866
```
5967
6068
### -CimSession
61-
Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a [`New-CimSession`](/powershell/module/cimcmdlets/new-cimsession) or [`Get-CimSession`](https://go.microsoft.com/fwlink/p/?LinkId=227966) cmdlet. The default is the current session on the local computer.
69+
70+
Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session
71+
object, such as the output of a [`New-CimSession`](/powershell/module/cimcmdlets/new-cimsession) or
72+
[`Get-CimSession`](/powershell/module/cimcmdlets/get-cimsession) cmdlet. The default is the
73+
current session on the local computer.
6274

6375
```yaml
6476
Type: CimSession[]
@@ -73,6 +85,7 @@ Accept wildcard characters: False
7385
```
7486

7587
### -DisplayName
88+
7689
Specifies a friendly name to display for the mapping.
7790

7891
```yaml
@@ -88,12 +101,14 @@ Accept wildcard characters: False
88101
```
89102

90103
### -Flags
91-
Specifies if `NamedPipes` are enabled for SMB over QUIC. The acceptable values for this parameter are:
92104

105+
Specifies if `NamedPipes` are enabled for SMB over QUIC. The acceptable values for this parameter
106+
are:
93107

94-
- `None:` Remove all flags
95-
- `AllowNamedPipe:` Enable use of named pipes in SMB over QUIC connections for this mapping (off by default, overrides value of RestrictNamedPipeAccessOverQuic)
96-
- `DefaultCert:` Not used
108+
- `None`: Remove all flags
109+
- `AllowNamedPipe`: Enable use of named pipes in SMB over QUIC connections for this mapping (off by
110+
default, overrides value of RestrictNamedPipeAccessOverQuic)
111+
- `DefaultCert`: Not used
97112

98113
```yaml
99114
Type: Flags[]
@@ -109,6 +124,7 @@ Accept wildcard characters: False
109124
```
110125

111126
### -IncludeHidden
127+
112128
Not used.
113129

114130
```yaml
@@ -124,7 +140,9 @@ Accept wildcard characters: False
124140
```
125141

126142
### -Name
127-
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.
143+
144+
Specifies a fully-qualified DNS name or NetBIOS name that must match the certificate's subject name
145+
or an entry in the certificate's subject alternative names.
128146

129147
```yaml
130148
Type: String[]
@@ -138,7 +156,49 @@ Accept pipeline input: True (ByPropertyName)
138156
Accept wildcard characters: False
139157
```
140158

159+
### -RequireClientAuthentication
160+
161+
Specifies whether client authentication is required for connections to the server. When this
162+
parameter is set to `$true`, clients must present a valid certificate to connect to the server.
163+
When it is set to `$false`, clients can connect without presenting a certificate.
164+
165+
```yaml
166+
Type: Boolean[]
167+
Parameter Sets: (All)
168+
Aliases:
169+
170+
Required: False
171+
Position: Named
172+
Default value: None
173+
Accept pipeline input: True (ByPropertyName)
174+
Accept wildcard characters: False
175+
```
176+
177+
### -SkipClientCertificateAccessCheck
178+
179+
Specifies whether the server should skip the check for client certificate access when a client
180+
connects. When this parameter is set to `$true`, the server will not check whether the client has
181+
access to the certificate it presents. This can be useful in scenarios where the server is acting
182+
as a gateway or proxy, and does not need to perform full certificate validation.
183+
184+
However, it can also increase the risk of security breaches. When this parameter is set to
185+
`$false`, the server will check whether the client has access to the certificate it presents before
186+
allowing the client to connect.
187+
188+
```yaml
189+
Type: Boolean[]
190+
Parameter Sets: (All)
191+
Aliases:
192+
193+
Required: False
194+
Position: Named
195+
Default value: None
196+
Accept pipeline input: True (ByPropertyName)
197+
Accept wildcard characters: False
198+
```
199+
141200
### -StoreName
201+
142202
Specifies the path to the certificate store for the certificate.
143203

144204
```yaml
@@ -154,6 +214,7 @@ Accept wildcard characters: False
154214
```
155215

156216
### -Subject
217+
157218
Specifies the subject name of the certificate.
158219

159220
```yaml
@@ -169,7 +230,12 @@ Accept wildcard characters: False
169230
```
170231

171232
### -ThrottleLimit
172-
Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShell calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.
233+
234+
Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If
235+
this parameter is omitted or a value of `0` is entered, then Windows PowerShell calculates an
236+
optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the
237+
computer. The throttle limit applies only to the current cmdlet, not to the session or to the
238+
computer.
173239

174240
```yaml
175241
Type: Int32
@@ -184,6 +250,7 @@ Accept wildcard characters: False
184250
```
185251

186252
### -Thumbprint
253+
187254
Specifies the thumbprint value of the certificate.
188255

189256
```yaml
@@ -199,9 +266,10 @@ Accept wildcard characters: False
199266
```
200267

201268
### -Type
269+
202270
Specifies the type of certificate mapping. The acceptable value for this parameter is:
203271

204-
`QUIC:` Certificate mapping is for SMB over QUIC.
272+
- `QUIC`: Certificate mapping is for SMB over QUIC.
205273

206274
```yaml
207275
Type: Type[]
@@ -217,7 +285,11 @@ Accept wildcard characters: False
217285
```
218286

219287
### CommonParameters
220-
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
288+
289+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
290+
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
291+
-WarningAction, and -WarningVariable. For more information, see
292+
[about_CommonParameters](/powershell/module/microsoft.powershell.core/about/about_commonparameters).
221293

222294
## INPUTS
223295

@@ -227,6 +299,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
227299

228300
### Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbServerCertificateMapping.Flags[]
229301

302+
### System.Boolean[]
303+
230304
## OUTPUTS
231305

232306
### Microsoft.Management.Infrastructure.CimInstance
@@ -236,3 +310,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
236310
## NOTES
237311

238312
## RELATED LINKS
313+
314+
[New-SmbServerCertificateMapping](New-SmbServerCertificateMapping.md)
315+
316+
[Remove-SmbServerCertificateMapping](Remove-SmbServerCertificateMapping.md)
317+
318+
[Set-SmbServerCertificateMapping](Set-SmbServerCertificateMapping.md)

0 commit comments

Comments
 (0)