Private/Helper/Test-IsWorkstation.ps1
<#
Copyright © 2024 Integris. For internal company use only. All rights reserved. #> FUNCTION Test-IsWorkstation { <# .SYNOPSIS Determines if the operating system is a workstation edition. .DESCRIPTION This function checks the product type of the operating system to determine if it is a workstation edition. .PARAMETER None .EXAMPLE Test-IsWorkstation .NOTES The function uses the Get-CIMInstance cmdlet to get the product type of the operating system. #> $ProductType = (Get-CIMInstance Win32_OperatingSystem).ProductType IF ($ProductType -eq 1) { RETURN $True } RETURN $False } |