SetAccessSuccessAudit
(
Trustee As String,
AuditPermissions As String
);
Parameters
[in] String Trustee
User or group name for which audit is to be set.
[in] String AuditPermissions
Audit permissions to be set for the Trustee. Refer to Access
Permissions for a complete list of audit permissions on a securable
object.
Description
Adds "Success" access audit for the specified permissions. This is
equivalent to calling SetAccessAudit with "+" prefixed without
any prefix before the audit permissions.
Example
Dim AuditSec As IAuditSecurity
Set AuditSec= CreateObject("DirectScript.ObjectSecurity")
'Read the auditing information of the file c:\test.txt
AuditSec.AttachFile "c:\test.txt
'Set Write success "W" audit permissions for "John"
AuditSec.SetAccessSuccessAudit "John", "W"
'Verify if the audit has been set
Debug.Print AuditSec.IsAuditSet("John", "+W")
See Also
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.