Can this be added back?
</Command>
<Command Type="PS" Team="General" OutputFileName="NA">MdmDiagnosticsTool.exe -out $pwd
$outputPath = "$env:temp\CollectedData\Intune\Commands\General"
$x = if (-not (Test-Path $outputPath)) { mkdir $outputPath -Force}
move .\MDMDiagReport.* $outputPath</Command>
When using -out $pwd it creates several important files like "MDMDiagReport.html" and "MDMDiagReport.xml" to the local path which are the GPResult equivalent for policies coming from Intune. The update to dynamically apply the areas from the registry removed this. The default command with all areas doesn't create this file so we need an extra step just to generate the diagnostics report files and move them appropriately.
Example:

Can this be added back?
When using -out $pwd it creates several important files like "MDMDiagReport.html" and "MDMDiagReport.xml" to the local path which are the GPResult equivalent for policies coming from Intune. The update to dynamically apply the areas from the registry removed this. The default command with all areas doesn't create this file so we need an extra step just to generate the diagnostics report files and move them appropriately.
Example: