Skip to content

Commit 856d11c

Browse files
authored
Merge pull request #3784 from Xelu86/Update_SmbClientCertificateMapping
Added new SMBClientCertificateMapping cmdlet
2 parents 5976cfa + d2e29f2 commit 856d11c

4 files changed

+1242
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,291 @@
1+
---
2+
description: Use this topic to help manage Windows and Windows Server technologies with Windows PowerShell.
3+
external help file: SmbClientCertificateMapping.cdxml-help.xml
4+
Module Name: SmbShare
5+
ms.date: 02/22/2024
6+
online version: https://learn.microsoft.com/powershell/module/smbshare/get-smbclientcertificatemapping?view=windowsserver2025-ps&wt.mc_id=ps-gethelp
7+
schema: 2.0.0
8+
title: Get-SmbClientCertificateMapping
9+
---
10+
11+
# Get-SmbClientCertificateMapping
12+
13+
## SYNOPSIS
14+
Retrieves the client certificate mappings for the Server Message Block (SMB) protocol.
15+
16+
## SYNTAX
17+
18+
```
19+
Get-SmbClientCertificateMapping [[-Namespace] <String[]>] [[-Subject] <String[]>]
20+
[-IssuerName <String[]>] [-Thumbprint <String[]>] [-DisplayName <String[]>] [-StoreName <String[]>]
21+
[-Type <Type[]>] [-Flags <Flags[]>] [-IncludeHidden] [-CimSession <CimSession[]>]
22+
[-ThrottleLimit <Int32>] [-AsJob] [<CommonParameters>]
23+
```
24+
25+
## DESCRIPTION
26+
27+
The `Get-SmbClientCertificateMapping` cmdlet retrieves the client certificate mappings for the SMB
28+
protocol, such as when using SMB over QUIC. These mappings are used to authenticate clients that
29+
connect to SMB servers using certificates.
30+
31+
## EXAMPLES
32+
33+
### Example 1: Retrieve all certificate mappings for a specific store
34+
35+
```powershell
36+
Get-SmbClientCertificateMapping -StoreName "My"
37+
```
38+
39+
This retrieves all certificate mappings that have been stored in a specific certificate store.
40+
41+
### Example 2: Retrieve a specific certificate mapping by display name
42+
43+
```powershell
44+
Get-SmbClientCertificateMapping -DisplayName "MyCertificateMapping"
45+
```
46+
47+
This retrieves a specific certificate mapping by its display name.
48+
49+
## PARAMETERS
50+
51+
### -AsJob
52+
53+
Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to
54+
complete.
55+
56+
```yaml
57+
Type: SwitchParameter
58+
Parameter Sets: (All)
59+
Aliases:
60+
61+
Required: False
62+
Position: Named
63+
Default value: None
64+
Accept pipeline input: False
65+
Accept wildcard characters: False
66+
```
67+
68+
### -CimSession
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)
72+
or [Get-CimSession](/powershell/module/cimcmdlets/get-cimsession) cmdlet. The default is the
73+
current session on the local computer.
74+
75+
```yaml
76+
Type: CimSession[]
77+
Parameter Sets: (All)
78+
Aliases: Session
79+
80+
Required: False
81+
Position: Named
82+
Default value: None
83+
Accept pipeline input: False
84+
Accept wildcard characters: False
85+
```
86+
87+
### -DisplayName
88+
89+
Specifies the friendly name of the certificate.
90+
91+
```yaml
92+
Type: String[]
93+
Parameter Sets: (All)
94+
Aliases:
95+
96+
Required: False
97+
Position: Named
98+
Default value: None
99+
Accept pipeline input: True (ByPropertyName)
100+
Accept wildcard characters: False
101+
```
102+
103+
### -Flags
104+
105+
Specifies if `NamedPipes` are enabled for SMB over QUIC. The acceptable values for this parameter
106+
are:
107+
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 the **RestrictNamedPipeAccessOverQuic** parameter)
111+
- `DefaultCert`: Not used
112+
113+
```yaml
114+
Type: Flags[]
115+
Parameter Sets: (All)
116+
Aliases:
117+
Accepted values: None, AllowNamedPipe, DefaultCert
118+
119+
Required: False
120+
Position: Named
121+
Default value: None
122+
Accept pipeline input: True (ByPropertyName)
123+
Accept wildcard characters: False
124+
```
125+
126+
### -IncludeHidden
127+
128+
Not used.
129+
130+
```yaml
131+
Type: SwitchParameter
132+
Parameter Sets: (All)
133+
Aliases:
134+
135+
Required: False
136+
Position: Named
137+
Default value: None
138+
Accept pipeline input: False
139+
Accept wildcard characters: False
140+
```
141+
142+
### -IssuerName
143+
144+
Filters the certificate mappings based on the issuer name of the certificate.
145+
146+
```yaml
147+
Type: String[]
148+
Parameter Sets: (All)
149+
Aliases:
150+
151+
Required: False
152+
Position: Named
153+
Default value: None
154+
Accept pipeline input: True (ByPropertyName)
155+
Accept wildcard characters: False
156+
```
157+
158+
### -Namespace
159+
160+
Specifies the namespace in which the certificate mappings are located. By default, the cmdlet
161+
searches in the `root\cimv2\Security\MicrosoftTlsCertificateMappingProvider` namespace.
162+
163+
```yaml
164+
Type: String[]
165+
Parameter Sets: (All)
166+
Aliases:
167+
168+
Required: False
169+
Position: 1
170+
Default value: None
171+
Accept pipeline input: True (ByPropertyName)
172+
Accept wildcard characters: False
173+
```
174+
175+
### -StoreName
176+
177+
Specifies the path to the certificate store for the certificate.
178+
179+
```yaml
180+
Type: String[]
181+
Parameter Sets: (All)
182+
Aliases:
183+
184+
Required: False
185+
Position: Named
186+
Default value: None
187+
Accept pipeline input: True (ByPropertyName)
188+
Accept wildcard characters: False
189+
```
190+
191+
### -Subject
192+
193+
Specifies the subject name of the certificate.
194+
195+
```yaml
196+
Type: String[]
197+
Parameter Sets: (All)
198+
Aliases:
199+
200+
Required: False
201+
Position: 2
202+
Default value: None
203+
Accept pipeline input: True (ByPropertyName)
204+
Accept wildcard characters: False
205+
```
206+
207+
### -ThrottleLimit
208+
209+
Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If
210+
this parameter is omitted or a value of `0` is entered, then Windows PowerShell calculates an
211+
optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the
212+
computer. The throttle limit applies only to the current cmdlet, not to the session or to the
213+
computer.
214+
215+
```yaml
216+
Type: Int32
217+
Parameter Sets: (All)
218+
Aliases:
219+
220+
Required: False
221+
Position: Named
222+
Default value: None
223+
Accept pipeline input: False
224+
Accept wildcard characters: False
225+
```
226+
227+
### -Thumbprint
228+
229+
Specifies the thumbprint value of the certificate.
230+
231+
```yaml
232+
Type: String[]
233+
Parameter Sets: (All)
234+
Aliases:
235+
236+
Required: False
237+
Position: Named
238+
Default value: None
239+
Accept pipeline input: True (ByPropertyName)
240+
Accept wildcard characters: False
241+
```
242+
243+
### -Type
244+
245+
Specifies the type of certificate mapping. The acceptable value for this parameter is:
246+
247+
`QUIC`: Certificate mapping is for SMB over QUIC.
248+
249+
```yaml
250+
Type: Type[]
251+
Parameter Sets: (All)
252+
Aliases:
253+
Accepted values: QUIC
254+
255+
Required: False
256+
Position: Named
257+
Default value: None
258+
Accept pipeline input: True (ByPropertyName)
259+
Accept wildcard characters: False
260+
```
261+
262+
### CommonParameters
263+
264+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
265+
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
266+
-WarningAction, and -WarningVariable. For more information, see
267+
[about_CommonParameters](/powershell/module/microsoft.powershell.core/about/about_commonparameters).
268+
269+
## INPUTS
270+
271+
### System.String[]
272+
273+
### Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbClientCertificateMapping.Type[]
274+
275+
### Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbClientCertificateMapping.Flags[]
276+
277+
## OUTPUTS
278+
279+
### Microsoft.Management.Infrastructure.CimInstance
280+
281+
### Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/SMB/MSFT_SmbClientCertificateMapping
282+
283+
## NOTES
284+
285+
## RELATED LINKS
286+
287+
[New-SmbClientCertificateMapping](New-SmbClientCertificateMapping.md)
288+
289+
[Remove-SmbClientCertificateMapping](Remove-SmbClientCertificateMapping.md)
290+
291+
[Set-SmbClientCertificateMapping](Set-SmbClientCertificateMapping.md)

0 commit comments

Comments
 (0)