Skip to content

Commit

Permalink
1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
NickolajA committed Apr 26, 2023
1 parent e2600c9 commit c898faa
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 12 deletions.
29 changes: 17 additions & 12 deletions Public/New-IntuneWin32AppRequirementRule.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@ function New-IntuneWin32AppRequirementRule {
Author: Nickolaj Andersen
Contact: @NickolajA
Created: 2020-01-27
Updated: 2022-10-02
Updated: 2023-04-26
Version history:
1.0.0 - (2020-01-27) Function created
1.0.1 - (2021-03-22) Added new minimum supported operating system versions to parameter validation
1.0.2 - (2021-08-31) Added new minimum supported operating system versions to parameter validation
1.0.3 - (2022-09-02) minimumSupportedOperatingSystem property is replaced by minimumSupportedWindowsRelease
1.0.4 - (2022-10-02) minimumFreeDiskSpaceInMB, MinimumMemoryInMB, MinimumNumberOfProcessors and minimumCpuSpeedInMHz now adds a 'null' string
1.0.5 - (2023-04-26) Added support for new Windows 10 and Windows 11 minimum operating system versions
#>
[CmdletBinding(SupportsShouldProcess = $true)]
param(
Expand All @@ -46,7 +47,7 @@ function New-IntuneWin32AppRequirementRule {

[parameter(Mandatory = $true, HelpMessage = "Specify the minimum supported Windows release version as a requirement for the Win32 app.")]
[ValidateNotNullOrEmpty()]
[ValidateSet("1607", "1703", "1709", "1803", "1809", "1903", "1909", "2004", "20H2", "21H1")]
[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")]
[string]$MinimumSupportedWindowsRelease,

[parameter(Mandatory = $false, HelpMessage = "Specify the minimum free disk space in MB as a requirement for the Win32 app.")]
Expand Down Expand Up @@ -75,16 +76,20 @@ function New-IntuneWin32AppRequirementRule {

# Construct table for supported operating systems
$OperatingSystemTable = @{
"1607" = "1607"
"1703" = "1703"
"1709" = "1709"
"1803" = "1803"
"1809" = "1809"
"1903" = "1903"
"1909" = "1909"
"2004" = "2004"
"20H2" = "2H20"
"21H1" = "21H1"
"W10_1607" = "1607"
"W10_1703" = "1703"
"W10_1709" = "1709"
"W10_1803" = "1803"
"W10_1809" = "1809"
"W10_1903" = "1903"
"W10_1909" = "1909"
"W10_2004" = "2004"
"W10_20H2" = "2H20"
"W10_21H1" = "21H1"
"W10_21H2" = "Windows10_21H2"
"W10_22H2" = "Windows10_22H2"
"W11_21H2" = "Windows11_21H2"
"W11_22H2" = "Windows11_22H2"
}

# Construct ordered hash-table with least amount of required properties for default requirement rule
Expand Down
8 changes: 8 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Release notes for IntuneWin32App module

## 1.4.1
- Added a new function named `Test-AccessToken`, to assist when the current token is about to expire. This function will return `False` when the existing token is about to expire, within the give time frame defined in RenewalThresholdMinutes function parameter. Default is 10 minutes.
- `Add-IntuneWin32App` and `Set-IntuneWin32App` functions have been updated to support the new feature to allow of uninstallations of applications with an available assignment. At release of this version of the IntuneWin32App module, this feature has not publicly been announced by Microsoft, other than mentioned briefly in the 'In Development' documentation. However it has been available to be configured through Graph API for a couple of months at this point, hence this new functionality within the module is just for preparation of what's to come. The code of this module might have to be changed once the feature is publicly available and documented. Use this at your own risk.
- Fixed an issue with the Scope Tag functionality in the `Add-IntuneWin32App` function, where it would not return any Scope Tag id when authenticated as a user that is a member of a role in Intune (previously it only worked if the authenticated user was e.g. an Intune Administrator).
- Fixed issue #68 related to the `Add-IntuneWin32App` function when a RequirementRule object was not passed as parameter input, and the function would use default values.
- Added a new sample file called `9-Token refresh.ps1` to demonstrate how to handle token refresh scenarios in long running scripts.
- `New-IntuneWin32AppRequirementRule` function has been updated to support the newly added minimum operating system version of Windows 10 and 11. This change introduces a breaking change of existing scripts, since the new values that can be provided for the MinimumSupportedWindowsRelease parameter have been altered with a prefix of W10_ and W11_ to easier separate between the different operating system versions.

## 1.4.0
- Properly fixed the issue with the public `New-IntuneWin32AppRequirementRule` and the private `New-IntuneWin32AppBody` functions to ensure the minimumFreeDiskSpaceInMB, MinimumMemoryInMB, MinimumNumberOfProcessors and minimumCpuSpeedInMHz objets are dynamically added to the request body, only if specificed on the command line with the `New-IntuneWin32AppRequirementRule` function.
- Added parameter AzCopyWindowStyle to `Add-IntuneWin32App` function, to support what's discussed in issue #64.
Expand Down

0 comments on commit c898faa

Please sign in to comment.