ps/Modules/Cole.PowerShell.Developer/Public/Test-IsWindowsDesktop.ps1
2023-05-30 22:51:22 -07:00

12 lines
276 B
PowerShell

function Test-IsWindowsDesktop {
<#
.SYNOPSIS
Returns true if the platform is Windows and this is a desktop capable OS
#>
[CmdletBinding()]
[OutputType([bool])]
param (
)
return (Test-IsWindowsPlatform) -and ($PSVersionTable.PSEdition -eq 'Desktop')
}