From http://community.spiceworks.com/scripts/show/2020-run-command-based-on-os-version