1 Commits
Author SHA1 Message Date
McKenzieCoandClaude Fable 5 51e5966fa7 Fix silent bulk compare crash: op_Addition on PSObject
In Start-BulkCompareExportObjects the flat CSV row was built with
'$compValue +=' where $compValue is a single PSCustomObject element of
the result array. PowerShell has no op_Addition for PSObject, so every
silent batch compare using the 'Exported Files with Intune Objects (Id)'
provider threw 'Method invocation failed because [PSObject] does not
contain a method named op_Addition' before Save-BulkCompareResults ran,
and no CSV was produced.

All other compare providers assign the row object directly; this aligns
the export provider with them. Verified against a live tenant: the
silent BulkCompare job now completes and writes the result CSV.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-21 18:02:23 -04:00