Service#

Modifies a specified service.

Required Parameters#


Paramater

Description

Type

name

Specifies the name of the service to modify.

string

startup

Specifies the startup value for the service.
This is not required when not using operation change.

int
The following values are valid:
2 (Automatic)
3 (Manual)
4 (Disabled)

Optional Parameters#


Paramater

Description

Type

operation

Specifies the operation to take place.

Enum:
stop
continue
start
pause
delete
change

The default is delete.

deleteStop

Specifies whether to wait for the service to stop before deleting it.

bool
The default is true.

device

Indicates that the given service is a device driver.

bool
The default is false.

deleteUsingRegistry

Specifies to delete the service using the registry. This can sometimes be used to bypass the permissions of a given service.

bool
The default is false.

scope

If the edit makes use of the HKCU registry hive, this specifies the scope of user hives to apply it to.

Enum:
allUsers
currentUser
activeUsers
defaultUsers

The default is allUsers.