Skip To Content
PowerShell Gallery
Toggle navigation
Packages
Publish
Documentation
Sign in
Search PowerShell packages:
Dots
0.0.2
Private/Test-IsWindows.ps1
# Borrowed from Brandon Olin - thanks!
function
Test-IsWindows
{
[
CmdletBinding
(
)
]
[
OutputType
(
[bool]
)
]
param
(
)
end
{
!
(
Test-Path
-Path
Variable:\IsWindows
)
-or
$IsWindows
}
}