Skip to content

Function Service

Chris Hunt edited this page May 23, 2016 · 1 revision

Service

SYNOPSIS

Test a Service.

DESCRIPTION

Test the Status of a given Service.

PARAMETERS

Target [String]

[Parameter(
  Mandatory = $true,
  Position = 2,
  ParameterSetName = 'Set 1')]

Property [String]

[Parameter(
  Mandatory = $true,
  Position = 3,
  ParameterSetName = 'Set 1')]

Should [ScriptBlock]

[Parameter(
  Mandatory = $true,
  Position = 4,
  ParameterSetName = 'Set 1')]

Assertions

Only validates the Status property. Assertions: Be

EXAMPLES

-------------------------- EXAMPLE 1 --------------------------

Service w32time { Should Be Running }

-------------------------- EXAMPLE 2 --------------------------

Service bits { Should Be Stopped }