Security_RevokeFilePermissions
Description
Revokes the access rights for a trustee on a file
Syntax
Security_RevokeFilePermissions(sFile, sTrustee) As Boolean
Parameters
sDir (String)
Name of the File
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_RevokeFilePermissions(gsProgramFiles & "\CapaInstaller\Logs\CapaInstaller.bat", "S-1-5-4")
Related functions
Security functions Security_DenyFileAccess Security_SetFilePermissions