Security_RevokeServicePermissions

Description

Revokes permissions set on a Service for a trustee

 

Syntax

Security_RevokeServicePermissions(sService, sTrustee) As Boolean

 

Parameters

sService (String)

Service Name

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_RevokeServicePermissions("Service", "S-1-5-4") 

Scripting Guidelines

 

Related functions

Security functions Security_DenyServiceAccess Security_SetServicePermissions