Skip to content

Commit d7b08d5

Browse files
authored
Update Grant-SmbShareAccess.md
added description for examples and SMB instance
1 parent ae97625 commit d7b08d5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docset/winserver2012r2-ps/smbshare/Grant-SmbShareAccess.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,27 +43,26 @@ The **Grant-SmbShareAccess** cmdlet adds an allow access control entry (ACE) for
4343

4444
## EXAMPLES
4545

46-
### Example 1
46+
### Example 1: Adds an allow ACE for a trustee
4747
```
48-
PS C:\>Grant-SmbShareAccess -Name VMFiles -AccountName Contoso\Contoso-HV2$ -AccessRight Full
48+
PS C:\>Grant-SmbShareAccess -Name "VMFiles" -AccountName "Contoso\Contoso-HV2$" -AccessRight Full
4949
Confirm
5050
Are you sure you want to perform this action?
5151
Performing operation 'Modify' on Target 'Contoso-SO,VMFiles'.
5252
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y
53-
53+
5454
Name ScopeName AccountName AccessControlType AccessRight
5555
---- --------- ----------- ----------------- -----------
5656
VMFiles Contoso-SO Contoso\Administrator Allow Full
5757
VMFiles Contoso-SO Contoso\Contoso-HV1$ Allow Full
5858
VMFiles Contoso-SO Contoso\Contoso-HV2$ Allow Full
5959
```
6060

61-
This example adds an allow ACE for a trustee to the security descriptor of the SMB share named VMFiles for the account named Contoso\Contoso-HV2$.
61+
This command adds an allow ACE for a trustee to the security descriptor of the SMB share named VMFiles for the account named Contoso\Contoso-HV2$.
6262

63-
### Example 2
63+
### Example 2: Adds an allow ACE for a trustee without confirmation
6464
```
6565
PS C:\>Grant-SmbShareAccess -Name VMFiles -AccountName "Contoso\Domain Admins" -AccessRight Change -Force
66-
6766
Name ScopeName AccountName AccessControlType AccessRight
6867
---- --------- ----------- ----------------- -----------
6968
VMFiles Contoso-SO Contoso\Administrator Allow Full
@@ -72,7 +71,7 @@ VMFiles Contoso-SO Contoso\Contoso-HV2$ Allow
7271
VMFiles Contoso-SO Contoso\Domain Admins Allow Change
7372
```
7473

75-
This example adds an allow ACE for a trustee to the security descriptor of the SMB share named VMFiles for the account named Contoso\Contoso-HV2$ without user confirmation.
74+
This command adds an allow ACE for a trustee to the security descriptor of the SMB share named VMFiles for the account named Contoso\Contoso-HV2$ without user confirmation.
7675

7776
## PARAMETERS
7877

@@ -218,13 +217,14 @@ Accept wildcard characters: False
218217
```
219218
220219
### -SmbInstance
221-
{{Fill SmbInstance Description}}
220+
Specifies the input to this cmdlet.
221+
You can use this parameter, or you can pipe the input to this cmdlet.
222222
223223
```yaml
224224
Type: SmbInstance
225225
Parameter Sets: Query
226226
Aliases:
227-
Accepted values: Default, CSV
227+
Accepted values: Default, CSV, SBL, SR
228228

229229
Required: False
230230
Position: Named

0 commit comments

Comments
 (0)