@@ -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
4949Confirm
5050Are you sure you want to perform this action?
5151Performing 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+
5454Name ScopeName AccountName AccessControlType AccessRight
5555---- --------- ----------- ----------------- -----------
5656VMFiles Contoso-SO Contoso\Administrator Allow Full
5757VMFiles Contoso-SO Contoso\Contoso-HV1$ Allow Full
5858VMFiles 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```
6565PS C:\>Grant-SmbShareAccess -Name VMFiles -AccountName "Contoso\Domain Admins" -AccessRight Change -Force
66-
6766Name ScopeName AccountName AccessControlType AccessRight
6867---- --------- ----------- ----------------- -----------
6968VMFiles Contoso-SO Contoso\Administrator Allow Full
@@ -72,7 +71,7 @@ VMFiles Contoso-SO Contoso\Contoso-HV2$ Allow
7271VMFiles 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
224224Type : SmbInstance
225225Parameter Sets : Query
226226Aliases :
227- Accepted values : Default, CSV
227+ Accepted values : Default, CSV, SBL, SR
228228
229229Required : False
230230Position : Named
0 commit comments