BlockAccess method of the MSFT_SmbShare class
Updates a share's security descriptor to block accounts from accessing a share.
uint32 BlockAccess(
[in] string AccountName[],
[out] MSFT_SmbShareAccessControlEntry Output[]
);
-
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.
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.
Minimum supported client |
Windows 8 |
Minimum supported server |
Windows Server 2012 |
Namespace |
Root\Microsoft\Windows\Smb |
MOF |
|
DLL |
|