RevokeAccess method of the MSFT_SmbShare class

Updates a share's security descriptor to revoke permission to access a share from a set of accounts.

Syntax

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

Parameters

AccountName [in]

An array of strings containing the names of accounts whose access permissions will be revoked.

Output [out]

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

Remarks

To revoke access, all existing access-allowed 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