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

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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