exit early if run on a server
This commit is contained in:
@@ -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
|
# Exit if the endpoint is not running at least Windows 10
|
||||||
If ( IsWindowsVersion -lt "10.0" ) { Return }
|
If ( IsWindowsVersion -lt "10.0" ) { Return }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user