PackageDeployment Module Help

Package Deployment Module

Test-RunningAsService Cmdlet

Version 4.0.0.5

Test-RunningAsService

Synopsis

Checks, if the command runs in a service session

Syntax

Test-RunningAsService [-ContinueOnError] [<CommonParameters>]

Description

Checks, if the session, in which the command is executed, is running in a service context.

Parameters

-ContinueOnError <SwitchParameter>

Continues script execution in spite of errors in the respective command

Required

False

Position

Named

Accepts pipeline input

False

<CommonParameters>

For more information about common parameters, type "Get-Help about_CommonParameters".