Skip to content

Commit 4c64dd7

Browse files
committed
Applied feedback
1 parent 35d9a34 commit 4c64dd7

File tree

3 files changed

+54
-48
lines changed

3 files changed

+54
-48
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ OK G: \\fs1.contoso.com\public
4646

4747
### -AsJob
4848

49-
Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete.
49+
Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to
50+
complete.
5051

5152
```yaml
5253
Type: SwitchParameter
@@ -63,7 +64,8 @@ Accept wildcard characters: False
6364
### -CimSession
6465
6566
Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session
66-
object, such as the output of a `New-CimSession` or `Get-CimSession` cmdlet. The default is the
67+
object, such as the output of a [New-CimSession](/powershell/module/cimcmdlets/new-cimsession) or
68+
[Get-CimSession](/powershell/module/cimcmdlets/get-cimsession) cmdlet. The default is the
6769
current session on the local computer.
6870
6971
```yaml
@@ -150,6 +152,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
150152
151153
## RELATED LINKS
152154
153-
[New-SmbGlobalMapping.md](New-SmbGlobalMapping.md)
155+
[New-SmbGlobalMapping](New-SmbGlobalMapping.md)
154156
155-
[Remove-SmbGlobalMapping.md](Remove-SmbGlobalMapping.md)
157+
[Remove-SmbGlobalMapping](Remove-SmbGlobalMapping.md)

docset/winserver2025-ps/smbshare/New-SmbGlobalMapping.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ OK G: \\fs1.contoso.com\public
4848
```
4949

5050
This command will gather the credentials for the global mapping. It then maps the remote share path
51-
`\\fs1.contoso.com\public` to the "G:" drive letter. Any users, applications, or containers can now
52-
access data on the G: drive.
51+
`\\fs1.contoso.com\public` to the indicated drive letter. Any users, applications, or containers
52+
can now access data on that drive.
5353

5454
## PARAMETERS
5555

@@ -92,7 +92,7 @@ Accept wildcard characters: False
9292

9393
Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session
9494
object, such as the output of a [New-CimSession](/powershell/module/cimcmdlets/new-cimsession) or
95-
[Get-CimSession](https://go.microsoft.com/fwlink/p/?LinkId=227966) cmdlet. The default is the
95+
[Get-CimSession](/powershell/module/cimcmdlets/get-cimsession) cmdlet. The default is the
9696
current session on the local computer.
9797

9898
```yaml
@@ -124,22 +124,6 @@ Accept pipeline input: False
124124
Accept wildcard characters: False
125125
```
126126

127-
### -Confirm
128-
129-
Prompts you for confirmation before running the cmdlet.
130-
131-
```yaml
132-
Type: SwitchParameter
133-
Parameter Sets: (All)
134-
Aliases: cf
135-
136-
Required: False
137-
Position: Named
138-
Default value: None
139-
Accept pipeline input: False
140-
Accept wildcard characters: False
141-
```
142-
143127
### -Credential
144128

145129
Specifies a credential gathered with Get-Credential.
@@ -394,6 +378,22 @@ Accept pipeline input: False
394378
Accept wildcard characters: False
395379
```
396380

381+
### -Confirm
382+
383+
Prompts you for confirmation before running the cmdlet.
384+
385+
```yaml
386+
Type: SwitchParameter
387+
Parameter Sets: (All)
388+
Aliases: cf
389+
390+
Required: False
391+
Position: Named
392+
Default value: None
393+
Accept pipeline input: False
394+
Accept wildcard characters: False
395+
```
396+
397397
### -WhatIf
398398

399399
Shows what would happen if the cmdlet runs. The cmdlet isn't run.
@@ -429,6 +429,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
429429

430430
## RELATED LINKS
431431

432-
[Get-SmbGlobalMapping.md](Get-SmbGlobalMapping.md)
432+
[Get-SmbGlobalMapping](Get-SmbGlobalMapping.md)
433433

434-
[Remove-SmbGlobalMapping.md](Remove-SmbGlobalMapping.md)
434+
[Remove-SmbGlobalMapping](Remove-SmbGlobalMapping.md)

docset/winserver2025-ps/smbshare/Remove-SmbGlobalMapping.md

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,16 @@ Removes a Server Message Block (SMB) global mapping to an SMB share.
1515

1616
## SYNTAX
1717

18+
### Query
19+
1820
```
1921
Remove-SmbGlobalMapping [[-LocalPath] <String[]>] [[-RemotePath] <String[]>] [-Force]
2022
[-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-AsJob] [-PassThru] [-WhatIf] [-Confirm]
2123
[<CommonParameters>]
2224
```
2325

26+
### InputObject
27+
2428
```
2529
Remove-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
4044
Remove-SmbGlobalMapping -LocalPath G:
@@ -70,7 +74,7 @@ Accept wildcard characters: False
7074
7175
Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session
7276
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
7478
current session on the local computer.
7579

7680
```yaml
@@ -85,22 +89,6 @@ Accept pipeline input: False
8589
Accept 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

10694
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.
123111

124112
```yaml
125113
Type: CimInstance[]
126-
Parameter Sets: InputObject (cdxml)
114+
Parameter Sets: InputObject
127115
Aliases:
128116
129117
Required: True
@@ -139,7 +127,7 @@ Specifies the local drive letter to which the remote path is mapped.
139127

140128
```yaml
141129
Type: String[]
142-
Parameter Sets: Query (cdxml)
130+
Parameter Sets: Query
143131
Aliases:
144132
145133
Required: False
@@ -172,7 +160,7 @@ Specifies the remote path that's accessed from this computer.
172160

173161
```yaml
174162
Type: String[]
175-
Parameter Sets: Query (cdxml)
163+
Parameter Sets: Query
176164
Aliases:
177165
178166
Required: False
@@ -201,6 +189,22 @@ Accept pipeline input: False
201189
Accept 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

206210
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
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

Comments
 (0)