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