Skip to content

List Windows Services

Lists all Windows services configured on one or more remote Windows servers and returns their current status.

The parameters to be configured are:

  • Server - Specify the Windows server or servers to query for installed services.
  • Filter (optional) - Optional regex pattern to filter services by name. If provided, only services matching the pattern will be returned.

Return Value

This service returns a nested hash structure with the following format:

{
    'ServerName1' => {
        'ServiceName1' => 'RUNNING',
        'ServiceName2' => 'STOPPED',
        ...
    },
    'ServerName2' => {
        ...
    }
}

Possible service statuses are:

  • RUNNING - The service is currently running
  • STOPPED - The service is stopped
  • START_PENDING - The service is starting
  • STOP_PENDING - The service is stopping
  • PAUSE_PENDING - The service is pausing
  • CONTINUE_PENDING - The service is resuming after a pause
  • PAUSED - The service is paused

Usage Examples

List all services on a server

Configure the palette service with a server and leave the filter empty to get all services.

Filter services by pattern

Use the filter field to search for specific services. For example: - SQL - Returns all services containing "SQL" in their name - ^W - Returns all services starting with "W" - Update$ - Returns all services ending with "Update"

Notes

  • The service list is retrieved using the Windows sc query command
  • This service supports multilingual Windows servers (English, Spanish, etc.)
  • Status codes are language-independent, ensuring consistent results across different Windows locales