Page tree
Skip to end of metadata
Go to start of metadata

Description

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


Syntax

Security_DenyFileAccess(sFile, sTrustee) As Boolean


Parameters

sFile (String)

Filename

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

Scripting Guidelines


Related functions

Security functions Security_SetFilePermissions Security_RevokeFilePermissions

  • No labels