exit early if run on a server

This commit is contained in:
2024-09-19 14:50:35 -04:00
parent 5676dbb554
commit 87f7a75c9c
+3
View File
@@ -1,3 +1,6 @@
# Exit if the endpoint is a server edition
Get-CimInstance -ClassName Win32_OperatingSystem | Select-Object -Property ProductType | ForEach-Object { If ( $_.ProductType -gt 1 ) { Return } }
# Exit if the endpoint is not running at least Windows 10
If ( IsWindowsVersion -lt "10.0" ) { Return }