Skip to content

Instantly share code, notes, and snippets.

@trodemaster
Created January 24, 2016 03:39
Show Gist options
  • Save trodemaster/4fbdc40f8139aeb11b24 to your computer and use it in GitHub Desktop.
Save trodemaster/4fbdc40f8139aeb11b24 to your computer and use it in GitHub Desktop.
Returns true if the windows OS is a server version.
(gwmi win32_operatingsystem).OperatingSystemSKU -match "(\b[7-9]|10|1[2-5]|1[7-9]|2[0-5])"
@trodemaster
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment