Skip to content

JayRHa/Intune-Device-Troubleshooter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intune Device Troubleshooter

Intune Device Troubleshooter main view

License: MIT PowerShell Microsoft Graph

PowerShell desktop UI for fast, device-level Intune troubleshooting.

It combines managed device data, user context, compliance/configuration status, app deployment states, and remediation actions in one place so you can investigate and act without jumping through multiple admin portals.

Highlights

  • Unified single-device view with Intune + Entra ID context
  • Built-in device actions (Sync, Restart, Shutdown when available)
  • Actionable recommendations based on current device signals
  • One-click remediation trigger for individual devices
  • Deep links to Intune admin center and Azure portal from key IDs

Screenshots

Device overview Device actions
Overview Actions
Recommendations Remediation trigger
Recommendations Remediation

Requirements

  • Windows host with PowerShell and WPF support
  • Access to Microsoft Intune and Microsoft Graph
  • User account with sufficient Intune/Entra admin rights

The tool uses Microsoft Graph beta profile.

Graph Scopes Requested by the Tool

On sign-in, the app requests:

  • User.Read.All
  • User.Read
  • Group.Read.All
  • DeviceManagementManagedDevices.PrivilegedOperations.All
  • DeviceManagementApps.Read.All
  • DeviceManagementConfiguration.Read.All
  • DeviceManagementManagedDevices.Read.All

If remediation/group operations fail in your tenant, validate additional delegated permissions and role assignments for group write and remediation assignment operations.

Quick Start

git clone https://github.com/JayRHa/Intune-Device-Troubleshooter.git
cd Intune-Device-Troubleshooter

Unblock bundled DLLs once (recommended):

Get-ChildItem .\libaries\*.dll | Unblock-File

Run the app:

powershell -ExecutionPolicy Bypass -File .\Start-DeviceTroubleshooter.ps1

The script installs Microsoft.Graph automatically if it is missing.

How Remediation Triggering Works

When you start a remediation script for one selected device, the tool:

  1. Uses (or creates) a security group named MDM-Remediation-Trigger-{ScriptName}
  2. Adds the selected device to that group
  3. Assigns the remediation script to the group (if not already assigned)
  4. Runs the remediation on the next service cycle

The group prefix can be adjusted in Start-DeviceTroubleshooter.ps1.

Notes and Limitations

  • Device list is designed for managed Windows and macOS devices
  • Remediation tab is shown for Windows devices
  • Some API calls rely on Microsoft Graph beta behavior

Troubleshooting

  • Startup fails while loading DLLs: run Get-ChildItem .\libaries\*.dll | Unblock-File
  • Graph sign-in fails: ensure Microsoft Graph outbound access, allowed consent for scopes, and sufficient Intune/Entra role permissions
  • Remediation does not apply: check group creation/member add and verify remediation assignment + device eligibility in Intune

Author

License

MIT. See LICENSE.

About

PowerShell-based troubleshooting tool for diagnosing and resolving issues on Intune managed devices

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors