PowerShell Logo Small

Unblock-SmbShareAccess



This is the built-in help made by Microsoft for the command 'Unblock-SmbShareAccess', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 Standard' 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.

SYNOPSIS

Removes all of the deny access control entries (ACEs) for the trustee from the security descriptor of the Server Message Block (SMB) share.

SYNTAX


Unblock-SmbShareAccess [-Name] <String[]> [[-ScopeName] <String[]>] [-AccountName <String[]>] [-AsJob [<SwitchParameter>]] [-CimSession
<CimSession[]>] [-Force [<SwitchParameter>]] [-ThrottleLimit <Int32>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]]
[<CommonParameters>]
Unblock-SmbShareAccess [-AccountName <String[]>] [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-Force [<SwitchParameter>]]
[-ThrottleLimit <Int32>] -InputObject <CimInstance[]> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


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.



<

RELATED LINKS

Block-SmbShareAccess
Get-SmbShareAccess
Grant-SmbShareAccess
Revoke-SmbShareAccess

REMARKS

<

Examples


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.