Skip to content

Security\_DenyServiceAccess

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

Security_DenyServiceAccess(sService, sTrustee) As Boolean

sService (String)

Name of the Service

sTrustee (String)

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

VBScript

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

Scripting Guidelines

Security functions Security_SetServicePermissions Security_RevokeServicePermissions