Scm tool connects to the Service Control Manager on a remote Windows system and lets you query service status, inspect service triggers, create new services, start and stop services, and delete services.
Subcommands
For help on any subcommand, run
Scm <subcommand> -h.Common options
AllScm subcommands share these authentication and connection options:
Authentication (credentials)
Authentication (credentials)
User name to authenticate with (not including the domain).
Domain of the authenticating user.
Password to authenticate with.
NTLM hash for pass-the-hash authentication.
Use anonymous login.
Authentication (Kerberos)
Authentication (Kerberos)
Connection
Connection
Override network address(es) of the server.
Use TCP over IPv4 only.
Use TCP over IPv6 only.
Encrypt RPC messages.
Connect over a named pipe instead of TCP when supported.
SOCKS5 proxy endpoint.
query
Queries the status of services on a remote system. Returns all services by default; filter by type or state to narrow results.Parameters
Parameters
RPC server to interact with.
Options
Options
Filter by service type. Possible values:
None, KernelDriver, FileSystemDriver, OwnProcess, SharedProcess, All.Filter by service state. Possible values:
None, Active, Inactive, All.Fields to display. Available:
ServiceName, DisplayName, ServiceType, State, Win32ExitCode, SpecificExitCode.Output format:
Freeform, Raw, Table, List, Csv, Tsv, Json.Examples
qtriggers
Queries the triggers configured to automatically start or stop a service.Parameters
Parameters
Options
Options
Fields to display. Available:
ServiceName, TriggerType, TriggerTypeDescription, Action, Data0.create
Creates a new service on a remote system and optionally starts it immediately. By default the service runs asLocalSystem and starts on demand (Demand start type).
Parameters
Parameters
Options
Options
Human-readable display name for the service.
Type of service. Possible values:
None, KernelDriver, FileSystemDriver, OwnProcess, SharedProcess, All.Start type. Possible values:
Boot, System, Auto, Demand, Disabled.Error control. Possible values:
Ignore, Normal, Severe, Critical.Account to run the service as.
Password of the service account.
List of services this service depends on.
Load order group.
Start the service immediately after creating it.