MSEndpointMgr / ConfigMgr

Microsoft Endpoint Configuration Manager scripts and tools
628 stars 282 forks source link

Windows 10 2004 Support #284

Closed MichaelGibsonAltrad closed 3 years ago

MichaelGibsonAltrad commented 3 years ago

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
                }
MichaelGibsonAltrad commented 3 years ago

Support is in the 6.5 BETA although it is buggy (separate issue posted for that)