Skip to content

MDMDiagReport file missing since last update, need -out $pwd back. #23

Description

@daniel-davila

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:

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions