Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.4.1] - 2026-11-09

- Carry the upstream warning on the Windows script file association policy: deploying it breaks Intune PowerShell scripts that run in the user context.
- Bundle the OpenIntuneBaseline `releases.json` catalog alongside the Windows v4.0 templates.
- Refresh bundled OpenIntuneBaseline to Windows v4.0.1 (Administrator Protection v4.0.1, Config Refresh update) and BYOD v2.0 (Android/iOS `App Protection - U - BYOD L2+ - v2.0`, replacing the previous BYOD app protection templates).
- Keep Pester tests compatible with Pester 6.

## [1.4.0] - 2026-10-03

Expand Down
12 changes: 6 additions & 6 deletions IntuneHydrationKit.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Module manifest for IntuneHydrationKit

# Version number of this module
ModuleVersion = '1.4.0'
ModuleVersion = '1.4.1'

# ID used to uniquely identify this module
GUID = 'f755f41b-d5fc-48db-8b11-62b7ed71b1cd'
Expand Down Expand Up @@ -85,12 +85,12 @@
# Release notes for this module
ReleaseNotes = @'

## v1.4.0
## v1.4.1

- Refresh bundled OpenIntuneBaseline policies to Windows v4.0 (102 importable policies).
- Add Windows 11 26H2 and iOS 27 filters; correct Windows, macOS, and iOS version ranges (44 filters).
- Show individual planned OIB and CIS creations during dry runs.
- Include deleted templates in upstream parity reports and document template upgrade behavior.
- Refresh bundled OpenIntuneBaseline to Windows v4.0.1 (Administrator Protection v4.0.1, Config Refresh update) and BYOD v2.0 (Android/iOS App Protection - U - BYOD L2+ - v2.0, replacing the previous BYOD app protection templates).
- Carry the upstream warning on the Windows script file association policy: deploying it breaks Intune PowerShell scripts that run in the user context.
- Bundle the OpenIntuneBaseline releases.json catalog.
- Keep Pester tests compatible with Pester 6.

'@
}
Expand Down
48 changes: 24 additions & 24 deletions IntuneHydrationKit.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -73,30 +73,30 @@ if (Test-Path -Path $publicPath) {

# Define public functions to export (must match FunctionsToExport in .psd1)
$publicFunctions = @(
'Connect-IntuneHydration',
'Get-GraphErrorMessage',
'Get-ObfuscatedTenantId',
'Get-OpenIntuneBaseline',
'Get-ResultSummary',
'Import-CISBaseline',
'Import-HydrationSettings',
'Import-IntuneAppProtectionPolicy',
'Import-IntuneBaseline',
'Import-IntuneCompliancePolicy',
'Import-IntuneConditionalAccessPolicy',
'Import-IntuneDeviceFilter',
'Import-IntuneEnrollmentProfile',
'Import-IntuneMobileApp',
'Import-IntuneNotificationTemplate',
'Import-IntuneWinGetApp',
'Initialize-HydrationLogging',
'Invoke-IntuneHydration',
'New-HydrationResult',
'New-IntuneDynamicGroup',
'New-IntuneStaticGroup',
'Test-HydrationKitObject',
'Test-IntunePrerequisites',
'Write-HydrationLog'
'Connect-IntuneHydration',
'Get-GraphErrorMessage',
'Get-ObfuscatedTenantId',
'Get-OpenIntuneBaseline',
'Get-ResultSummary',
'Import-CISBaseline',
'Import-HydrationSettings',
'Import-IntuneAppProtectionPolicy',
'Import-IntuneBaseline',
'Import-IntuneCompliancePolicy',
'Import-IntuneConditionalAccessPolicy',
'Import-IntuneDeviceFilter',
'Import-IntuneEnrollmentProfile',
'Import-IntuneMobileApp',
'Import-IntuneNotificationTemplate',
'Import-IntuneWinGetApp',
'Initialize-HydrationLogging',
'Invoke-IntuneHydration',
'New-HydrationResult',
'New-IntuneDynamicGroup',
'New-IntuneStaticGroup',
'Test-HydrationKitObject',
'Test-IntunePrerequisites',
'Write-HydrationLog'
)

# Export functions
Expand Down
24 changes: 12 additions & 12 deletions Private/Baselines/Resolve-CISBaselineTemplatePlatform.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ function Resolve-CISBaselineTemplatePlatform {
}

$odataTypePlatformMap = @{
'#microsoft.graph.windows10CompliancePolicy' = 'Windows'
'#microsoft.graph.windows81CompliancePolicy' = 'Windows'
'#microsoft.graph.windows10CustomConfiguration' = 'Windows'
'#microsoft.graph.windows10CompliancePolicy' = 'Windows'
'#microsoft.graph.windows81CompliancePolicy' = 'Windows'
'#microsoft.graph.windows10CustomConfiguration' = 'Windows'
'#microsoft.graph.windowsDeliveryOptimizationConfiguration' = 'Windows'
'#microsoft.graph.windowsHealthMonitoringConfiguration' = 'Windows'
'#microsoft.graph.sharedPCConfiguration' = 'Windows'
'#microsoft.graph.groupPolicyConfiguration' = 'Windows'
'#microsoft.graph.macOSCompliancePolicy' = 'macOS'
'#microsoft.graph.iosCompliancePolicy' = 'iOS'
'#microsoft.graph.androidCompliancePolicy' = 'Android'
'#microsoft.graph.androidWorkProfileCompliancePolicy' = 'Android'
'#microsoft.graph.androidDeviceOwnerCompliancePolicy' = 'Android'
'#microsoft.graph.deviceManagementCompliancePolicy' = 'Linux'
'#microsoft.graph.windowsHealthMonitoringConfiguration' = 'Windows'
'#microsoft.graph.sharedPCConfiguration' = 'Windows'
'#microsoft.graph.groupPolicyConfiguration' = 'Windows'
'#microsoft.graph.macOSCompliancePolicy' = 'macOS'
'#microsoft.graph.iosCompliancePolicy' = 'iOS'
'#microsoft.graph.androidCompliancePolicy' = 'Android'
'#microsoft.graph.androidWorkProfileCompliancePolicy' = 'Android'
'#microsoft.graph.androidDeviceOwnerCompliancePolicy' = 'Android'
'#microsoft.graph.deviceManagementCompliancePolicy' = 'Linux'
}

$odataType = [string]$TemplateContent.'@odata.type'
Expand Down
66 changes: 33 additions & 33 deletions Private/Configuration/Get-HydrationWorkloadCatalog.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,69 +4,69 @@ function Get-HydrationWorkloadCatalog {

@(
[pscustomobject]@{
ImportKey = 'dynamicGroups'
FilterKey = 'Groups'
Platforms = @('Windows', 'macOS', 'iOS', 'Android')
ImportKey = 'dynamicGroups'
FilterKey = 'Groups'
Platforms = @('Windows', 'macOS', 'iOS', 'Android')
PlatformNeutral = $false
}
[pscustomobject]@{
ImportKey = 'staticGroups'
FilterKey = 'Groups'
Platforms = @('Windows', 'macOS', 'iOS', 'Android')
ImportKey = 'staticGroups'
FilterKey = 'Groups'
Platforms = @('Windows', 'macOS', 'iOS', 'Android')
PlatformNeutral = $false
}
[pscustomobject]@{
ImportKey = 'deviceFilters'
FilterKey = 'DeviceFilters'
Platforms = @('Windows', 'macOS', 'iOS', 'Android')
ImportKey = 'deviceFilters'
FilterKey = 'DeviceFilters'
Platforms = @('Windows', 'macOS', 'iOS', 'Android')
PlatformNeutral = $false
}
[pscustomobject]@{
ImportKey = 'openIntuneBaseline'
FilterKey = 'Baseline'
Platforms = @('Windows', 'macOS', 'iOS', 'Android')
ImportKey = 'openIntuneBaseline'
FilterKey = 'Baseline'
Platforms = @('Windows', 'macOS', 'iOS', 'Android')
PlatformNeutral = $false
}
[pscustomobject]@{
ImportKey = 'cisBaselines'
FilterKey = 'CISBaseline'
Platforms = @('Windows', 'macOS', 'iOS', 'Android', 'Linux')
ImportKey = 'cisBaselines'
FilterKey = 'CISBaseline'
Platforms = @('Windows', 'macOS', 'iOS', 'Android', 'Linux')
PlatformNeutral = $false
}
[pscustomobject]@{
ImportKey = 'complianceTemplates'
FilterKey = 'Compliance'
Platforms = @('Windows', 'macOS', 'iOS', 'Android', 'Linux')
ImportKey = 'complianceTemplates'
FilterKey = 'Compliance'
Platforms = @('Windows', 'macOS', 'iOS', 'Android', 'Linux')
PlatformNeutral = $false
}
[pscustomobject]@{
ImportKey = 'appProtection'
FilterKey = 'AppProtection'
Platforms = @('iOS', 'Android')
ImportKey = 'appProtection'
FilterKey = 'AppProtection'
Platforms = @('iOS', 'Android')
PlatformNeutral = $false
}
[pscustomobject]@{
ImportKey = 'enrollmentProfiles'
FilterKey = 'EnrollmentProfiles'
Platforms = @('Windows', 'macOS')
ImportKey = 'enrollmentProfiles'
FilterKey = 'EnrollmentProfiles'
Platforms = @('Windows', 'macOS')
PlatformNeutral = $false
}
[pscustomobject]@{
ImportKey = 'mobileApps'
FilterKey = 'MobileApps'
Platforms = @('Windows', 'macOS')
ImportKey = 'mobileApps'
FilterKey = 'MobileApps'
Platforms = @('Windows', 'macOS')
PlatformNeutral = $false
}
[pscustomobject]@{
ImportKey = 'notificationTemplates'
FilterKey = $null
Platforms = @()
ImportKey = 'notificationTemplates'
FilterKey = $null
Platforms = @()
PlatformNeutral = $true
}
[pscustomobject]@{
ImportKey = 'conditionalAccess'
FilterKey = $null
Platforms = @()
ImportKey = 'conditionalAccess'
FilterKey = $null
Platforms = @()
PlatformNeutral = $true
}
)
Expand Down
2 changes: 1 addition & 1 deletion Private/Tui/Get-HydrationTuiAsciiArt.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Get-HydrationTuiAsciiArt {
function Get-HydrationTuiAsciiArt {
[CmdletBinding()]
[OutputType([string[]])]
param()
Expand Down
3 changes: 1 addition & 2 deletions Private/Tui/Show-HydrationTuiSelect.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ function Show-HydrationTuiSelect {
}
}
}
}
finally {
} finally {
try { [Console]::CursorVisible = $true } catch { $null = $_ }
}
}
2 changes: 1 addition & 1 deletion Public/Baselines/Import-IntuneBaseline.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function Import-IntuneBaseline {
# OpenIntuneBaseline uses OS-based folder structure:
# - OS/IntuneManagement/ - Exported by IntuneManagement tool (requires Windows GUI to import)
# - OS/NativeImport/ - Settings Catalog policies that can be imported via Graph API
# - BYOD/AppProtection/ - App protection policies
# - BYOD/IntuneManagement/AppProtection/ - App protection policies (routed by @odata.type)

$importMetadata = Get-BaselineImportMetadata -Kind 'OpenIntune'
$endpointMap = $importMetadata.EndpointMap
Expand Down
4 changes: 2 additions & 2 deletions Public/Imports/Import-IntuneCompliancePolicy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ function Import-IntuneCompliancePolicy {
# If the filename scoped the template to a non-Linux platform, do not let contradictory JSON route it to Linux.
$templateTechnologies = @($template.technologies | ForEach-Object { [string]$_ } | Where-Object { -not [string]::IsNullOrWhiteSpace($_) })
$isLinuxCompliance = (-not $filenamePlatform -or $filenamePlatform -eq 'Linux') -and
$templatePlatformValues.Count -eq 1 -and $templatePlatformValues[0] -eq 'linux' -and
$templateTechnologies.Count -eq 1 -and $templateTechnologies[0] -eq 'linuxMdm'
$templatePlatformValues.Count -eq 1 -and $templatePlatformValues[0] -eq 'linux' -and
$templateTechnologies.Count -eq 1 -and $templateTechnologies[0] -eq 'linuxMdm'
$endpoint = if ($isLinuxCompliance) {
"deviceManagement/compliancePolicies"
} else {
Expand Down
Loading
Loading