MSEndpointMgr / ModernDriverManagement

Official repo of Modern Driver Management from MSEndpointMgr.com
https://www.msendpointmgr.com
MIT License
133 stars 80 forks source link

Windows 11 version 23H2 TS just hangs for hours without failing or succeeding. #267

Open ryancloyd opened 1 year ago

ryancloyd commented 1 year ago

Has anyone added support for Windows 11 version 23H2 yet. I made an attempt and ran the debug mode and it worked fine, but when used in the TS it is just hanging or stopping the TS on that step. Oddly it's not writing any data to the smsts.log, nor creating an ApplyDriverPackage.log. Any thoughts?

skdean commented 1 year ago

23H2 works for me after adding the following:

` switch ($OSName) { "Windows 11" { switch (([System.Version]$InputObject).Build) { "22631" { $OSVersion = '23H2' } "22621" { $OSVersion = '22H2' } "22000" { $OSVersion = '21H2' } default { Write-CMLogEntry -Value " - Unable to translate OS version using input object: $($InputObject)" -Severity 3 Write-CMLogEntry -Value " - Unsupported OS version detected, please reach out to the developers of this script" -Severity 3

                    # Throw terminating error                       
                    $PSCmdlet.ThrowTerminatingError((New-TerminatingErrorRecord))
                }
            }
        }`

and the target os to: [ValidateSet("23H2", "22H2", "21H2", "21H1", "20H2", "2004", "1909", "1903", "1809", "1803", "1709", "1703", "1607")]

ryancloyd commented 1 year ago

Thanks skdean, I've been rebuilding the DP that had other issues after adding the 23H2 changes to the script. It reported some additional errors in the status messages reported back which is leading me to rebuild the DP. Thank you for your assistance!