Skip to content

Test-PodeIsPSCore

SYNOPSIS

Tests if the the current session is running in PowerShell Core.

SYNTAX

Test-PodeIsPSCore [<CommonParameters>]

DESCRIPTION

Tests if the the current session is running in PowerShell Core.

EXAMPLES

EXAMPLE 1

if (Test-PodeIsPSCore) { /* logic */ }

PARAMETERS

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

System.Boolean

NOTES