Page tree

Versions Compared

Key

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

...

Denies a Trustee (user or group) access to a file

 


Syntax

Security_DenyFileAccess(sFile, sTrustee) As Boolean

 


Parameters

sFile (String)

Filename

...

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_DenyFileAccess(gsProgramFiles & "\CapaInstaller\CapaInstaller.bat", "S-1-5-4")

Scripting Guidelines

 


Related functions

Security functions Security_SetFilePermissions Security_RevokeFilePermissions