Security_DenyServiceAccess
Description
Denies a Trustee (user or group) access to a Service
Syntax
Security_DenyServiceAccess(sService, sTrustee) As Boolean
Parameters
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 (Security Identifier)
Example
VBScript
If bStatus Then bStatus = Security_DenyServiceAccess("Service", "S-1-5-4")
Related functions
Security functions Security_SetServicePermissions Security_RevokeServicePermissions