This topic has not yet been rated - Rate this topic

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 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Namespace

\ROOT\Microsoft\Windows\Smb

MOF

Smbwmiv2.mof

DLL

Smbwmiv2.dll

See also

MSFT_SmbShare

 

 

Send comments about this topic to Microsoft

Build date: 11/5/2012

Community Additions

ADD
© 2013 Microsoft. All rights reserved.