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

Default

operation

Specifies the operation to take place.

Enum:
stop
continue
start
pause
delete
change

delete

deleteStop

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

bool

true

device

Indicates that the given service is a device driver.

bool

false

deleteUsingRegistry

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

bool

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

allUsers