@@ -15,12 +15,16 @@ Removes a Server Message Block (SMB) global mapping to an SMB share.
15
15
16
16
## SYNTAX
17
17
18
+ ### Query
19
+
18
20
```
19
21
Remove-SmbGlobalMapping [[-LocalPath] <String[]>] [[-RemotePath] <String[]>] [-Force]
20
22
[-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-AsJob] [-PassThru] [-WhatIf] [-Confirm]
21
23
[<CommonParameters>]
22
24
```
23
25
26
+ ### InputObject
27
+
24
28
```
25
29
Remove-SmbGlobalMapping -InputObject <CimInstance[]> [-Force] [-CimSession <CimSession[]>]
26
30
[-ThrottleLimit <Int32>] [-AsJob] [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]
@@ -34,7 +38,7 @@ The `Remove-SmbGlobalMapping` cmdlet removes the SMB global mapping to an SMB sh
34
38
35
39
### Example 1: Remove an SMB global mapping
36
40
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.
38
42
39
43
``` powershell
40
44
Remove-SmbGlobalMapping -LocalPath G:
@@ -70,7 +74,7 @@ Accept wildcard characters: False
70
74
71
75
Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session
72
76
object, 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
74
78
current session on the local computer.
75
79
76
80
` ` ` yaml
@@ -85,22 +89,6 @@ Accept pipeline input: False
85
89
Accept wildcard characters: False
86
90
` ` `
87
91
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
-
104
92
# ## -Force
105
93
106
94
Forces the command to run without asking for user confirmation.
@@ -123,7 +111,7 @@ Specifies the input object that's used in a pipeline command.
123
111
124
112
` ` ` yaml
125
113
Type: CimInstance[]
126
- Parameter Sets: InputObject (cdxml)
114
+ Parameter Sets: InputObject
127
115
Aliases:
128
116
129
117
Required: True
@@ -139,7 +127,7 @@ Specifies the local drive letter to which the remote path is mapped.
139
127
140
128
` ` ` yaml
141
129
Type: String[]
142
- Parameter Sets: Query (cdxml)
130
+ Parameter Sets: Query
143
131
Aliases:
144
132
145
133
Required: False
@@ -172,7 +160,7 @@ Specifies the remote path that's accessed from this computer.
172
160
173
161
` ` ` yaml
174
162
Type: String[]
175
- Parameter Sets: Query (cdxml)
163
+ Parameter Sets: Query
176
164
Aliases:
177
165
178
166
Required: False
@@ -201,6 +189,22 @@ Accept pipeline input: False
201
189
Accept wildcard characters: False
202
190
` ` `
203
191
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
+
204
208
# ## -WhatIf
205
209
206
210
Shows 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
240
244
241
245
# # RELATED LINKS
242
246
243
- [Get-SmbGlobalMapping.md ](Get-SmbGlobalMapping.md)
247
+ [Get-SmbGlobalMapping](Get-SmbGlobalMapping.md)
244
248
245
- [New-SmbGlobalMapping.md ](New-SmbGlobalMapping.md)
249
+ [New-SmbGlobalMapping](New-SmbGlobalMapping.md)
0 commit comments