Skip to content

Security_DenyShareAccess

Denies a trustee access to a share.

Security_DenyShareAccess(sShare, sTrustee) As Boolean

Name of the Share

A trustee is a user or group. Trustee can either be “Domainname/username” or a Well-known SID’s (Security Identifier)

If bStatus Then bStatus = Security_DenyShareAccess("\\server01\CapaInstaller", "S-1-5-4")

Scripting Guidelines

Security functions Security_SetSharePermissions Security_RevokeSharePermissions Constants Package Property Variables