@@ -15,12 +15,16 @@ Removes a Server Message Block (SMB) global mapping to an SMB share.
1515
1616## SYNTAX
1717
18+ ### Query
19+
1820```
1921Remove-SmbGlobalMapping [[-LocalPath] <String[]>] [[-RemotePath] <String[]>] [-Force]
2022 [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-AsJob] [-PassThru] [-WhatIf] [-Confirm]
2123 [<CommonParameters>]
2224```
2325
26+ ### InputObject
27+
2428```
2529Remove-SmbGlobalMapping -InputObject <CimInstance[]> [-Force] [-CimSession <CimSession[]>]
2630 [-ThrottleLimit <Int32>] [-AsJob] [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]
@@ -34,7 +38,7 @@ The `Remove-SmbGlobalMapping` cmdlet removes the SMB global mapping to an SMB sh
3438
3539### Example 1: Remove an SMB global mapping
3640
37- This command removes an SMB global mapping for the "G:" drive to an SMB share.
41+ This command removes an SMB global mapping for the indicated drive to an SMB share.
3842
3943``` powershell
4044Remove-SmbGlobalMapping -LocalPath G:
@@ -70,7 +74,7 @@ Accept wildcard characters: False
7074
7175Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session
7276object, such as the output of a [` New-CimSession`](/powershell/module/cimcmdlets/new-cimsession) or
73- [`Get-CimSession`](https://go.microsoft.com/fwlink/p/?LinkId=227966 ) cmdlet. The default is the
77+ [`Get-CimSession`](/powershell/module/cimcmdlets/get-cimsession ) cmdlet. The default is the
7478current session on the local computer.
7579
7680` ` ` yaml
@@ -85,22 +89,6 @@ Accept pipeline input: False
8589Accept wildcard characters: False
8690` ` `
8791
88- # ## -Confirm
89-
90- Prompts you for confirmation before running the cmdlet.
91-
92- ` ` ` yaml
93- Type: SwitchParameter
94- Parameter Sets: (All)
95- Aliases: cf
96-
97- Required: False
98- Position: Named
99- Default value: None
100- Accept pipeline input: False
101- Accept wildcard characters: False
102- ` ` `
103-
10492# ## -Force
10593
10694Forces the command to run without asking for user confirmation.
@@ -123,7 +111,7 @@ Specifies the input object that's used in a pipeline command.
123111
124112` ` ` yaml
125113Type: CimInstance[]
126- Parameter Sets: InputObject (cdxml)
114+ Parameter Sets: InputObject
127115Aliases:
128116
129117Required: True
@@ -139,7 +127,7 @@ Specifies the local drive letter to which the remote path is mapped.
139127
140128` ` ` yaml
141129Type: String[]
142- Parameter Sets: Query (cdxml)
130+ Parameter Sets: Query
143131Aliases:
144132
145133Required: False
@@ -172,7 +160,7 @@ Specifies the remote path that's accessed from this computer.
172160
173161` ` ` yaml
174162Type: String[]
175- Parameter Sets: Query (cdxml)
163+ Parameter Sets: Query
176164Aliases:
177165
178166Required: False
@@ -201,6 +189,22 @@ Accept pipeline input: False
201189Accept wildcard characters: False
202190` ` `
203191
192+ # ## -Confirm
193+
194+ Prompts you for confirmation before running the cmdlet.
195+
196+ ` ` ` yaml
197+ Type: SwitchParameter
198+ Parameter Sets: (All)
199+ Aliases: cf
200+
201+ Required: False
202+ Position: Named
203+ Default value: None
204+ Accept pipeline input: False
205+ Accept wildcard characters: False
206+ ` ` `
207+
204208# ## -WhatIf
205209
206210Shows what would happen if the cmdlet runs. The cmdlet isn't run.
@@ -240,6 +244,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
240244
241245# # RELATED LINKS
242246
243- [Get-SmbGlobalMapping.md ](Get-SmbGlobalMapping.md)
247+ [Get-SmbGlobalMapping](Get-SmbGlobalMapping.md)
244248
245- [New-SmbGlobalMapping.md ](New-SmbGlobalMapping.md)
249+ [New-SmbGlobalMapping](New-SmbGlobalMapping.md)
0 commit comments