Skip to content

Security_DenyServiceAccess

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

Security_DenyServiceAccess(sService, sTrustee) As Boolean

Name of the Service

A trustee is a user or group. Trustee can either be “Domainname/username” or a Well-known SID’s (Security Identifier)

If bStatus Then bStatus = Security_DenyServiceAccess("Service", "S-1-5-4")

Scripting Guidelines

Security functions Security_SetServicePermissions Security_RevokeServicePermissions Constants Package Property Variables