Security_DenyDirAccess

Description

Denies a Trustee (user or group) access to a directory. 


Syntax

Security_DenyDirAccess(sDir, sTrustee) As Boolean


Parameter

sDir (String)

Directory

sTrustee (String)

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


Example

VBScript
If bStatus Then bStatus = Security_DenyDirAccess(gsProgramFiles & "\CapaInstaller\Logs", "S-1-5-4")

Scripting Guidelines


Related functions

Security functions Security_SetDirPermissions Security_RevokeDirPermissions