In the file "FolderAndCollection_Software_Updates.xml", I would suggest some changes.
1.
As the "OperatingSystemNameandVersion" can differ from "Standard", "Datacenter" and so on and the version numbers can contain subversions, i also suggest the following changes for all the lines containing the text SMS_R_System.OperatingSystemNameandVersion
Using the following example
[...]SMS_R_System.OperatingSystemNameandVersion = "Microsoft Windows NT Server 5.1"
I suggest changing the = to LIKE in order to place a % after [...]NT[..] and the version number.
The results will then change from:
[...]SMS_R_System.OperatingSystemNameandVersion = "Microsoft Windows NT Server 5.1"
to
[...]SMS_R_System.OperatingSystemNameandVersion LIKE "Microsoft Windows NT% Server 5.1%"
2.
As the "Microsoft Windows NT Server 6.1" only refers to Windows Server 2008 R2 and not Windows Server 2008 (6.0), I suggest adding "OR" to the line, thereby changing the the end of the lines 32, 35 and 38 from
[....]where SMS_R_System.OperatingSystemNameandVersion = "Microsoft Windows NT Server 6.0"</Rule>
to
[....]where SMS_R_System.OperatingSystemNameandVersion = "Microsoft Windows NT Server 6.0" OR SMS_R_System where SMS_R_System.OperatingSystemNameandVersion = "Microsoft Windows NT Server 6.1"</Rule>