win32_add_right_access_service
win32_add_right_access_service
Add rights access for an username to the service
void **win32_add_right_access_service** string $servicename string $username int $right string $machine
Add the rights access for on
service. Administrative privileges are required for this to succeed.
username``servicename
servicenameThe service name to add rights access.
username
Read the rights access for .
username
right
The rights allowed for .
The can be used to define this value.
usernameservice rights constants
machineThe optional machine name on which you want to create a service.
If omitted, it will use the local machine.
Return a object.
Win32Service\RightInfo
A is thrown if the
value of parameter is empty.
ValueError``service
A is thrown if the
value of parameter is empty.
ValueError``username
A is thrown on error.
Win32ServiceException
win32_read_all_rights_access_service``win32_read_rights_access_service``win32_remove_right_access_serviceWin32 Rights constants