From 96643bee3ee335b7684fd6ab1eab35415d9efada Mon Sep 17 00:00:00 2001 From: Ath <53652632+Ath-PS@users.noreply.github.com> Date: Mon, 26 Jan 2026 17:59:41 +0000 Subject: [PATCH 1/2] Upload fails for me in the UK WARNING: An error occurred while creating the Win32 application. Error message: Exception calling "Parse" with "3" argument(s): "String '26/01/2026 15:39:11' was not recognized as a valid DateTime." --- Private/Invoke-AzureStorageBlobUpload.ps1 | 2 +- Public/Test-AccessToken.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Private/Invoke-AzureStorageBlobUpload.ps1 b/Private/Invoke-AzureStorageBlobUpload.ps1 index 64cfd7c..5b19fb8 100644 --- a/Private/Invoke-AzureStorageBlobUpload.ps1 +++ b/Private/Invoke-AzureStorageBlobUpload.ps1 @@ -58,7 +58,7 @@ function Invoke-AzureStorageBlobUpload { # Convert ExpiresOn to DateTimeOffset in UTC $ExpiresOnUTC = [DateTimeOffset]::Parse( - $Global:AccessToken.ExpiresOn.ToString(), + $Global:AccessToken.ExpiresOn.ToString([System.Globalization.CultureInfo]::InvariantCulture), [System.Globalization.CultureInfo]::InvariantCulture, [System.Globalization.DateTimeStyles]::AssumeUniversal ).ToUniversalTime() diff --git a/Public/Test-AccessToken.ps1 b/Public/Test-AccessToken.ps1 index 0ba53ba..ff3daac 100644 --- a/Public/Test-AccessToken.ps1 +++ b/Public/Test-AccessToken.ps1 @@ -46,7 +46,7 @@ function Test-AccessToken { } # Convert ExpiresOn to DateTimeOffset in UTC - $ExpiresOnUTC = [DateTimeOffset]::Parse($Global:AccessToken.ExpiresOn.ToString(), [System.Globalization.CultureInfo]::InvariantCulture, [System.Globalization.DateTimeStyles]::AssumeUniversal).ToUniversalTime() + $ExpiresOnUTC = [DateTimeOffset]::Parse($Global:AccessToken.ExpiresOn.ToString([System.Globalization.CultureInfo]::InvariantCulture), [System.Globalization.CultureInfo]::InvariantCulture, [System.Globalization.DateTimeStyles]::AssumeUniversal).ToUniversalTime() # Get the current UTC time as DateTimeOffset $UTCDateTime = [DateTimeOffset]::UtcNow From 98463882c17afe8b0fad0353052e7112f2f21983 Mon Sep 17 00:00:00 2001 From: Ath <53652632+Ath-PS@users.noreply.github.com> Date: Sat, 21 Feb 2026 10:15:14 +0000 Subject: [PATCH 2/2] Add Windows 11 23H2 and 24H2 support --- Public/New-IntuneWin32AppRequirementRule.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Public/New-IntuneWin32AppRequirementRule.ps1 b/Public/New-IntuneWin32AppRequirementRule.ps1 index ec0381b..b26f75a 100644 --- a/Public/New-IntuneWin32AppRequirementRule.ps1 +++ b/Public/New-IntuneWin32AppRequirementRule.ps1 @@ -55,7 +55,7 @@ function New-IntuneWin32AppRequirementRule { [parameter(Mandatory = $true, HelpMessage = "Specify the minimum supported Windows release version as a requirement for the Win32 app.")] [ValidateNotNullOrEmpty()] - [ValidateSet("W10_1607", "W10_1703", "W10_1709", "W10_1803", "W10_1809", "W10_1903", "W10_1909", "W10_2004", "W10_20H2", "W10_21H1", "W10_21H2", "W10_22H2", "W11_21H2", "W11_22H2")] + [ValidateSet("W10_1607", "W10_1703", "W10_1709", "W10_1803", "W10_1809", "W10_1903", "W10_1909", "W10_2004", "W10_20H2", "W10_21H1", "W10_21H2", "W10_22H2", "W11_21H2", "W11_22H2", "W11_23H2", "W11_24H2")] [Alias('MinimumSupportedOperatingSystem')] [string]$MinimumSupportedWindowsRelease, @@ -101,6 +101,8 @@ function New-IntuneWin32AppRequirementRule { "W10_22H2" = "Windows10_22H2" "W11_21H2" = "Windows11_21H2" "W11_22H2" = "Windows11_22H2" + "W11_23H2" = "Windows11_23H2" + "W11_24H2" = "Windows11_24H2" } # Construct ordered hash-table with least amount of required properties for default requirement rule