BlockAccess method of the MSFT_SmbShare class
Updates a share's security descriptor to block accounts from accessing a share.
Syntax
uint32 BlockAccess(
[in] string AccountName[],
[out] MSFT_SmbShareAccessControlEntry Output[]
);
Parameters
-
AccountName [in]
-
An array of strings containing the names of accounts whose access will be blocked.
-
Output [out]
-
An array of instances of the MSFT_SmbShareAccessControlEntry class that represent the updated access control entries for the share.
Remarks
To block access, all existing access-denied access control entries (ACE) for the specified accounts are removed and replaced with ACEs that deny Full access.
Requirements
Minimum supported client |
Windows 8 |
Minimum supported server |
Windows Server 2012 |
Namespace |
Root\Microsoft\Windows\Smb |
MOF |
|
DLL |
|