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