Invoke-IntuneDiagExtender

1.4.0

Extends Microsoft's Intune device action "Collect diagnostics" by staging
administrator-selected files, complete directory archives and registry
exports in the Windows Temp location that Intune collects. Intended for
Intune Remediations and Windows troubleshooting from Autopilot/OOBE when
script execution is available. It only stages data; it neither starts a
diagnost
Extends Microsoft's Intune device action "Collect diagnostics" by staging
administrator-selected files, complete directory archives and registry
exports in the Windows Temp location that Intune collects. Intended for
Intune Remediations and Windows troubleshooting from Autopilot/OOBE when
script execution is available. It only stages data; it neither starts a
diagnostics request nor uploads data. Then run Intune Collect diagnostics
and download the diagnostic package.

Produces one verified %computername%-IntuneDiagExtender-Collection.zip.log.
Intermediate collector files are removed only after ZIP verification.
Previous collections remain in excluded local history ZIPs. Original
source files are never deleted. Requires .NET ZIP support (4.5 or newer).
See the notes, parameters and examples in Get-Help -Full for details.

Show more

Installation Options

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

Install-Script -Name Invoke-IntuneDiagExtender -RequiredVersion 1.4.0

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

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

Package Details

Author(s)

  • Wolfgang Bäck (CARECON GmbH)

Tags

Intune Diagnostics Remediation OOBE Registry Windows

Functions

Write-CollectorLog Write-CollectionError Test-MissingPathError Test-ReparsePath Test-HistoryPath Compress-StagedSnapshots Copy-LogSnapshot Get-DirectoryRoots Test-CollectorOutput Get-StagedPath ConvertTo-ExtensionKey Copy-DirectorySnapshots Compress-DirectorySnapshot ConvertTo-RegistryKeyName Get-RegistryRoots ConvertTo-RegFileString ConvertTo-RegFileHex ConvertTo-RegFileValue Export-RegistrySnapshot

PSEditions

Desktop

Dependencies

This script has no dependencies.

Release Notes

1.4.0: Publish collected files, registry exports and collector log as one verified ZIP.log package.
1.3.0: Archive previously staged collector files before each new collection.
1.2.0: Added Autopilot and enrollment registry defaults and targeted user MDM diagnostic paths.
1.1.1: Refactoring.
1.1.0: Added recursive registry key export (RegistryLocations) in .reg format, with wildcards and missing keys logged as warnings. Errors during file or registry collection, including invalid entries, are logged and collection continues.
1.0.0: Initial version: recursive log collection with wildcards, general and per-location file extensions, full-directory ZIP collection, and warnings for missing locations.

FileList

Version History

Version Downloads Last updated
1.5.0 13 11/16/2026
1.4.0 (current version) 11 11/16/2026
1.2.0 10 11/16/2026
1.1.1 9 11/13/2026