Partager via


UnblockAccess method of the MSFT_SmbShare class

Updates a share's security descriptor to unblock accounts from accessing a share.

Syntax

uint32 UnblockAccess(
  [in]  string                          AccountName[],
  [out] MSFT_SmbShareAccessControlEntry Output[]
);

Parameters

AccountName [in]

The array of names of accounts whose access is being unblocked.

Output [out]

An array of instances of the MSFT_SmbShareAccessControlEntry class that represent the updated access control entries for the share.

Remarks

To unblock access, all existing access-denied access control entries (ACE) for the specified accounts are removed.

Requirements

Minimum supported client
Windows 8
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\Smb
MOF
SmbWmiV2.mof
DLL
SmbWmiV2.dll

See also

MSFT_SmbShare