Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

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

 


Syntax

Security_DenyDirAccess(sDir, sTrustee) As Boolean

 


Parameter

sDir (String)

Directory

...

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

 


Example

Code Block
languagevb
themeEclipse
languagevb
titleVBScript
If bStatus Then bStatus = Security_DenyDirAccess(gsProgramFiles & "\CapaInstaller\Logs", "S-1-5-4")

Scripting Guidelines

 


Related functions

Security functions Security_SetDirPermissions Security_RevokeDirPermissions