Repository navigation
Conversation
The settings conversion read the Keys of the Severity value without checking that it was a dictionary. Under strict mode a string or a list ended Test-IntuneScript with PropertyNotFoundStrict, which named neither the settings source nor the setting. Such a value now fails the checks like any other value outside its set, with SettingsInvalid. Closes #105
This was referenced Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A settings table whose
Severityvalue is not a hashtable, such asSeverity = 'Error'in anIntuneScriptLab.settings.psd1file or in-Settings, endedTest-IntuneScriptwith the strict-mode errorPropertyNotFoundStrict, which named neither the source nor the setting. It now ends withSettingsInvalidand the message<source>: Severity must be a hashtable of rule names and severities, as every other value outside its set does.Closes #105
Changes
ConvertTo-IslSettingsObjectchecks thatSeverityis a dictionary after the other values and before its entries, and reads its keys only then. The help lists the check in its order.SettingsInvalidtable, a string and a list, and a test ofTest-IntuneScriptwith a settings file that setsSeverity = 'Error', which reports oneSettingsInvaliderror naming the file.Verification
fix/filter-version-overflow, which holds both fixes),./Tests/Invoke-Tests.ps1under PowerShell 7: 1,349 passed, 3 failed, 7 skipped. The unit suites under Windows PowerShell 5.1: 1,262 passed, 2 failed, 37 skipped. The failures are the host-dependent tests of Repair-IntuneScript corrupts an ANSI script on a host with a UTF-8 system code page #75 and In-box module table does not list UOPProviders, present on Windows 11 26H2 #76, on a host whose system code pages are UTF-8; they pass in CI..ps1file../Build/Publish-Module.ps1 -WhatIf: the staged module imports, exports its commands, analyzes a sample and serves its help; nothing published.quality-gates.yml, started by hand on this branch because the pull request is not based onmain: run 45521792628, which passed all five jobs.Notes
ConvertTo-IslSettingsObject, which refactor(helpers): move four nested helpers into their own files #100 moves out ofGet-IslSetting. Onmainthe same line is in the nested settings conversion ofGet-IslSetting. It merges after refactor(helpers): move the Win32 app flow's helpers out #104.🤖 Generated with Claude Code