Windows Server Windows Server: Services

Summary

This module contains actions for viewing & managing services on a Windows Server.

Actions

windows_server.services.

display

Display Windows services in a table.

The table will have the following columns:

  • Display Name
  • Name
  • State
  • Status

Minimum Plugin Version: 3.0.0

Input
  • text: the title of the table

  • services: any number of Services

Output

Nothing is outputted by this action.

Example
1
2
3
4
5
6
7
8
9
- windows_server.services.get_all:
  load:
    windows_server: windows_server
  save: all_services

- windows_server.services.display:
    text: All Services
  load:
    services: all_services

windows_server.services.

get_all

Get all services.

Minimum Plugin Version: 1.2.0

Input
Output

A list of Services.

Example
1
2
3
4
- windows_server.services.get_all:
  load:
    windows_server: windows_server
  save: all_services

windows_server.services.

get_by_name

Get a service using its name.

Minimum Plugin Version: 1.2.0

Input
  • windows_server: a WindowsServer dictionary

  • name: the name of the service

Output

A single Service dictionary.

Example
1
2
3
4
5
- windows_server.services.get_by_name:
    name: spooler
  load:
    windows_server: windows_server
  save: spooler_service

windows_server.services.

get_using_domain_account

Get all services that run under an account on the supplied domain.

Minimum Plugin Version: 3.1.0

Input
  • windows_server: a WindowsServer dictionary

  • domain: a NetBIOS domain name used to identify domain service accounts (i.e. the short domain name)

NetBIOS Domain Name

By default the first portion of the domain FQDN is the NetBIOS domain name, but it is possible to customise it.

If you're unsure of what it should be, You can use this action to get it.

Output

A list of Services.

Example
1
2
3
4
5
- windows_server.services.get_using_domain_account:
    domain: internal
  load:
    windows_server: windows_server
  save: services

windows_server.services.

input_table

Display a list of Windows services in a table, & allow the task operator to make a selection.

The table will have the following columns:

  • Display Name
  • Name
  • State
  • Status

Deprecation Warning

This action will soon be deprecated in favour of select.

Minimum Plugin Version: 1.1.0

Input
  • text: the title of the table

  • service_list: a list of Services

  • minimum: the minimum number of acceptable selections

  • maximum: the maximum number of acceptable selections

Output

A list of Service dictionaries.

Tip
  • If neither a minimum or maximum is provided, the task operator will be able to submit 0 selections.

  • If minimum or maximum are provided, the operation will repeat until the task operator makes a valid number of selections.

Example
  • Getting all services & saving them as all_services

  • Using this action to display them in a table, & saving the selection as selected_service

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
- windows_server.services.get_all:
  load:
    windows_server: windows_server
  save: all_services

- windows_server.services.input_table:
    text: Please Select a Session
    minimum: 1
    maximum: 1
  load:
    session_list: all_services
  save: selected_service

windows_server.services.

output_table

Display Windows services in a table.

The table will have the following columns:

  • Display Name
  • Name
  • State
  • Status

Deprecation Warning

This action will soon be deprecated in favour of display.

Minimum Plugin Version: 1.2.0

Input
  • text: the title of the table

  • services: a single or list of Services

Output

Nothing is outputted by this action.

Example
  • Getting all services & saving them as all_services

  • Using this action to display them in a table

1
2
3
4
5
6
7
8
9
- windows_server.services.get_all:
  load:
    windows_server: windows_server
  save: all_services

- windows_server.services.output_table:
    text: All Services
  load:
    services: all_services

windows_server.services.

restart

Restart a service using its name.

Minimum Plugin Version: 1.2.0

Input
  • windows_server: a WindowsServer dictionary

  • name: the name of the service to restart

Output

Nothing is outputted by this action.

Example
1
2
3
4
- windows_server.services.restart:
    name: spooler
  load:
    windows_server: windows_server

windows_server.services.

select

Display Windows services in a table & prompt the task operator to make a selection.

The table will have the following columns:

  • Display Name
  • Name
  • State
  • Status

Minimum Plugin Version: 3.0.0

Input
  • text: the title of the table

  • services: any number of Services

  • minimum: the minimum number of acceptable selections

  • maximum: the maximum number of acceptable selections

Output

A Selection containing:

Example
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
- windows_server.services.get_all:
  load:
    windows_server: windows_server
  save: all_services

- windows_server.services.select:
    text: Select Services
  load:
    session_list: all_services
  save: selection

windows_server.services.

select_one

Display Windows services in a table & prompt the task operator to select one.

The table will have the following columns:

  • Display Name
  • Name
  • State
  • Status

Minimum Plugin Version: 3.0.0

Input
  • text: the title of the table

  • services: any number of Services

Output

A single Service.

Example
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
- windows_server.services.get_all:
  load:
    windows_server: windows_server
  save: all_services

- windows_server.services.select_one:
    text: Select a Service
  load:
    session_list: all_services
  save: service

windows_server.services.

start

Start a service using its name.

Minimum Plugin Version: 1.2.0

Input
  • windows_server: a WindowsServer dictionary

  • name: the name of the service to start

Output

Nothing is outputted by this action.

Example
1
2
3
4
- windows_server.services.start:
    name: spooler
  load:
    windows_server: windows_server

windows_server.services.

stop

Stop a service using its name.

Minimum Plugin Version: 1.6.0

Input
  • windows_server: a WindowsServer dictionary

  • name: the name of the service to stop

  • force: set to true to force-stop the service (defaults to false)

Output

Nothing is outputted by this action.

Example
1
2
3
4
- windows_server.services.stop:
    name: spooler
  load:
    windows_server: windows_server