Skip to content

Test-IsWindows

SYNOPSIS

Is this running on a Windows system?

SYNTAX

Test-IsWindows [<CommonParameters>]

DESCRIPTION

Is this running on a Windows system?

EXAMPLES

EXAMPLE 1

Test-IsWindows

Returns $true if called from a Windows system and $false if not.

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 (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

None

You cannot pipe input to this cmdlet.

OUTPUTS

System.Boolean

NOTES

  • Troy Lindsay
  • Twitter: @troylindsay42
  • GitHub: tlindsay42

https://tlindsay42.github.io/PSRyver/Private/Test-IsWindows/

https://github.com/tlindsay42/PSRyver/blob/master/PSRyver/Private/Test-IsWindows.ps1