ps/Modules/Cole.PowerShell.Developer/Public/Test-IsWindowsDesktop.ps1

12 lines
276 B
PowerShell
Raw Normal View History

2023-05-30 22:51:22 -07:00
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')
}