--- title: "Start Windows Service" ---
This is generated from the built in components of BuildMaster 2024.0, and may be different than what you have installed (especially if you have extensions); go to [Gear Icon] -> Administration -> Operations within your BuildMaster instance to see exactly what operations are available.

Starts an existing Windows service.

Script usage:

Windows::Start-Service(
	Name: <text>,
	[WaitForRunningStatus: <true/false>],
	[FailIfServiceDoesNotExist: <true/false>]
);

Arguments:

NameFormatScript UsageUsage Notes
Service name (default)
text
Name
This argument is required.
Wait for running status
true/false
WaitForRunningStatus
Default value is "True".
Fail if service does not exist
true/false
FailIfServiceDoesNotExist
Default value is "False".

Example:

# starts the FOOBAR service on the remote server
Start-Service FOOBAR;