ServiceManager.

ExecuteCommand(string, string, int) Method

Summary

Executes a command on a named service
Assembly
Cake.Services.dll
Namespace
Cake.Services
Containing Type
ServiceManager

Syntax

public bool ExecuteCommand(string name, string computer = "", int command = 0)

Parameters

Name Type Description
name string The name that identifies the service to the system.
computer string The computer on which the service resides.
command int The command to execute.

Return Value

Type Description
bool If the command was executed.