We noticed that the current script (v3.0.4) doesn't support Windows 10 2004 on Lenovo devices and just returns an error about both properties not having any values. Adding the 2004 version to the switch statement below fixes that issue. I would also expect that this will not work with the latest version of Windows 10 just released (20H2) as it depends on how the driver manufacturers identify their packs (HP seem to use 20H2 on their website but I haven't checked the rest).
# Get operating system name and from build number
switch -Wildcard ($InputObject) {
"10.0*" {
$OSName = "Windows 10"
switch (([System.Version]$InputObject).Build) {
"19041" {
$OSVersion = 2004
}
"18363" {
$OSVersion = 1909
}
We noticed that the current script (v3.0.4) doesn't support Windows 10 2004 on Lenovo devices and just returns an error about both properties not having any values. Adding the 2004 version to the switch statement below fixes that issue. I would also expect that this will not work with the latest version of Windows 10 just released (20H2) as it depends on how the driver manufacturers identify their packs (HP seem to use 20H2 on their website but I haven't checked the rest).