IntuneScriptLab

0.32.0

Test Intune scripts before Intune does: static rules, a runtime harness, Pester assertions, a Graph
pre-flight over the tenant's deployed scripts and readers for the agent's logs

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name IntuneScriptLab -RequiredVersion 0.32.0

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name IntuneScriptLab -Version 0.32.0

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2026 Jeffrey Stuhr. All rights reserved.

Package Details

Author(s)

  • Jeffrey Stuhr

Tags

Intune Remediation Win32 PSScriptAnalyzer Lint Endpoint Pester

Functions

Test-IntuneScript Invoke-IntuneDetectionTest Invoke-IntuneRemediationTest Invoke-IntunePlatformScriptTest Invoke-IntuneWin32AppTest Invoke-IntuneRequirementTest Test-IntuneWin32Rule Test-IntuneWin32Requirement Get-IntuneAgentLog Get-IntuneAgentTimeline Export-IntuneAgentDiagnostic Get-IntuneAnalyzerRulePath Test-IntuneDeployedScript Compare-IntuneDeployedScript Get-IntuneScriptHealth Export-IntuneFindingSarif Repair-IntuneScript Test-IntuneAssignmentFilter Assert-HaveIntuneStatus Assert-BeIntuneDetected Assert-NotBeIntuneDetected Assert-HaveIntuneRunState Assert-PassIntuneAnalysis Assert-BeIntuneApplicable Assert-NotBeIntuneApplicable

PSEditions

Desktop Core

Dependencies

This module has no dependencies.

Release Notes

0.32.0 - Get-IntuneAgentTimeline read Kind as Unknown for a policy whose lines all sat in a rolled
       log file (HealthScripts-20260925-101500 lost only its time part); it reads Remediation or
       Win32App like one from the current file. The Policy column of the health report and drift
       tables is 40 characters wide, so a long policy name stays on one line. The README's log
       blocks show the Agent abbreviation and the list form of the diagnostic result. See
       CHANGELOG.md.
0.31.0 - Assignment filter messages. The parser warns about a -contains value that is only
       whitespace, which the service trims to nothing so the clause matches every device; a double
       quote inside a value is refused with a message saying no escape exists and that -contains
       or -startsWith on the parts around it is the way through. In exclude mode,
       Test-IntuneAssignmentFilter and Test-IntuneDeployedScript say what a warning means for the
       assignment: a clause that never matches excludes nobody, so the assignment reaches every
       device in the group. The tenant-wide help example keeps to Windows filters. See
       CHANGELOG.md.
0.30.0 - Invoke-IntuneDetectionTest, Invoke-IntuneRequirementTest and Invoke-IntuneWin32AppTest no
       longer default -Architecture to x64, which Windows on ARM refuses; left out, it is the
       device's 64-bit host (x64, or arm64 on ARM), the one the agent uses. Two Win32 fixes: the
       launcher starts its child without NoDefaultCurrentDirectoryInExePath, a per-user cmd.exe
       setting that made a bare install.cmd fail with "not recognized" although the agent's
       cmd.exe finds it; and the 32-bit host warning also reads the batch file an install or
       uninstall command names, where a powershell.exe call runs 32-bit just the same. See
       CHANGELOG.md.
Earlier versions, 0.1.0 to 0.29.0: CHANGELOG.md, which ships with the module.

FileList

Version History

Version Downloads Last updated
0.34.0 5 10/15/2026
0.33.0 4 10/15/2026
0.32.0 (current version) 4 10/14/2026
0.31.0 8 10/9/2026
0.30.0 5 10/8/2026
0.29.0 7 10/7/2026
0.28.0 7 10/6/2026
0.27.0 10 10/6/2026
0.26.0 12 9/29/2026
0.25.0 4 9/28/2026
Show more