Private/Helper/Test-IsDesktop.ps1
<#
Copyright © 2024 Integris. For internal company use only. All rights reserved. #> FUNCTION Test-IsDesktop { <# .SYNOPSIS Determines if the operating system is running on a desktop. .DESCRIPTION This function checks if the operating system is running on a desktop by verifying it is not a laptop, server, or virtual machine. .PARAMETER None .EXAMPLE Test-IsDesktop .NOTES The function relies on the Test-IsLaptop, Test-IsServer, and Test-IsVirtual functions to determine the system type. #> IF ((Test-IsLaptop) -or (Test-IsServer) -or (Test-IsVirtual)) { Return $False } ELSE { Return $True } } |