This is the built-in help made by Microsoft for the command 'Unblock-SmbShareAccess', in PowerShell version 4 - as retrieved from
Windows version 'Microsoft Windows 8.1 Enterprise' PowerShell help files on 2016-06-23.
For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.
Removes all of the deny access control entries (ACEs) for the trustee from the security descriptor of the Server Message Block (SMB) share.
Unblock-SmbShareAccess [-Name] <String[]> [[-ScopeName] <String[]>] [-AccountName <String[]>] [-AsJob] [-CimSession <CimSession[]>] [-Force] [-ThrottleLimit <Int32>]
[-Confirm] [-WhatIf] [<CommonParameters>]
Unblock-SmbShareAccess [-AccountName <String[]>] [-AsJob] [-CimSession <CimSession[]>] [-Force] [-ThrottleLimit <Int32>] -InputObject <CimInstance[]> [-Confirm] [-Wha
tIf] [<CommonParameters>]
The Unblock-SmbShareAccess cmdlet removes all of the deny access control entries (ACEs) for the trustee from the security descriptor of the Server Message Block (SMB)
share.
<
Online Version: http://go.microsoft.com/fwlink/?LinkId=291236
Block-SmbShareAccess
Get-SmbShareAccess
Grant-SmbShareAccess
Revoke-SmbShareAccess
<
EXAMPLE 1
PS C:\>Unblock-SmbShareAccess -Name VMFiles -AccountName "Guest Users"
Confirm
Are you sure you want to perform this action?
Performing operation 'Modify' on Target 'Contoso-SO,VMFiles'.
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y
Name ScopeName AccountName AccessControlType AccessRight
---- --------- ----------- ----------------- -----------
VMFiles Contoso-SO Contoso\Guest Deny Full
VMFiles Contoso-SO Contoso\Administrator Allow Full
VMFiles Contoso-SO Contoso\Contoso-HV1$ Allow Full
This example removes all of the deny ACEs for the trustee from the security descriptor of the SMB share.
EXAMPLE 2
PS C:\>Unblock-SmbShareAccess -Name VMFiles -AccountName Contoso\Guest -Force
Name ScopeName AccountName AccessControlType AccessRight
---- --------- ----------- ----------------- -----------
VMFiles Contoso-SO Contoso\Administrator Allow Full
VMFiles Contoso-SO Contoso\Contoso-HV1$ Allow Full
This example removes all of the deny ACEs for the trustee from the security descriptor of the SMB share without user confirmation.