< Back
Test-IsWindows
Post
NAME Test-IsWindows
SYNOPSIS
Tests if the current OS is Windows.
SYNTAX
Test-IsWindows [<CommonParameters>]
DESCRIPTION
Tests if the current OS is Windows.
PARAMETERS
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.Boolean
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>if (Test-IsWindows) { /* logic */ }
RELATED LINKS
SYNOPSIS
Tests if the current OS is Windows.
SYNTAX
Test-IsWindows [<CommonParameters>]
DESCRIPTION
Tests if the current OS is Windows.
PARAMETERS
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.Boolean
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>if (Test-IsWindows) { /* logic */ }
RELATED LINKS