Internet Explorer is no longer supported. Many things will still work, but your experience will be degraded and some things won't function. Please use a modern browser such as Edge, Chrome, or Firefox.

Start Windows Service

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
Fail if service does not exist
true/false
FailIfServiceDoesNotExist

Example:

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