How do I check for the version of Windows?
I have a class of Windows machines that includes Windows 10 desktops, Windows Server 2008 and WIndows Server 2012 machines. I'd like my multi-part manifests to run against every Windows machines. I would like subparts to include modules that should be ran against certain versions of Windows but not other versions of Windows. That is, I want a given module in a manifest to run against Windows 10 desktops, a different portion of the manifest to run against Windows Server 2012 machines exclusive of Windows other servers/desktops. How do I do this without changing the class of servers? I'd like to keep one long manifest.