Skip to content

Commit

Permalink
Update Invoke-CMApplyDriverPackage.ps1
Browse files Browse the repository at this point in the history
Added support for Windows 11 23H2
  • Loading branch information
maurice-daly authored Feb 6, 2024
1 parent 449b122 commit e9bd6d0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Invoke-CMApplyDriverPackage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
Author: Nickolaj Andersen / Maurice Daly
Contact: @NickolajA / @MoDaly_IT
Created: 2017-03-27
Updated: 2022-03-05
Updated: 2024-02-06
Contributors: @CodyMathis123, @JamesMcwatty
Expand Down Expand Up @@ -207,7 +207,8 @@
- Extended the SystemSKU unwanted character cleanup process to include null and whitespaces
- Fixed several issues related to the Fallback Driver Package functionality where old code was left behind from the webservice days
4.2.1 - (2022-09-22) - Added support for Windows 10 22H2
4.2.2 - (2023-06-23) - Fixed Windows 10 22H2 missing switch value
4.2.2 - (2023-06-23) - Fixed Windows 10 22H2 missing switch value.
4.2.3 - (2024-02-06) - Added support for Windows 11 23H2
#>
[CmdletBinding(SupportsShouldProcess = $true, DefaultParameterSetName = "BareMetal")]
param(
Expand Down Expand Up @@ -275,7 +276,7 @@ param(
[parameter(Mandatory = $true, ParameterSetName = "Debug")]
[parameter(Mandatory = $false, ParameterSetName = "XMLPackage")]
[ValidateNotNullOrEmpty()]
[ValidateSet("22H2", "21H2", "21H1", "20H2", "2004", "1909", "1903", "1809", "1803", "1709", "1703", "1607")]
[ValidateSet("23H2","22H2", "21H2", "21H1", "20H2", "2004", "1909", "1903", "1809", "1803", "1709", "1703", "1607")]
[string]$TargetOSVersion,

[parameter(Mandatory = $false, ParameterSetName = "BareMetal", HelpMessage = "Define the value that will be used as the target operating system architecture e.g. 'x64'.")]
Expand Down Expand Up @@ -972,6 +973,9 @@ Process {
switch ($OSName) {
"Windows 11" {
switch (([System.Version]$InputObject).Build) {
"22631" {
$OSVersion = '23H2'
}
"22621" {
$OSVersion = '22H2'
}
Expand Down

1 comment on commit e9bd6d0

@rawsilk520
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've working with Windows 10 and Windows 11 drivers in SCCM. When I add the Windows 11 driver the Windows 10 Task sequence stops working, can't seem to find the Windows 10 drivers. Have you had anyone report this?

Please sign in to comment.