Skip to content

JayRHa/IntuneDeviceTroubleshooter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jannik Reinhard — AI, Cloud and Endpoint Management

Intune Device Troubleshooter

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

Website GitHub LinkedIn X YouTube

Tool · App · CLI · PowerShell · Practical by design

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.

Quickstart

git clone https://github.com/JayRHa/IntuneDeviceTroubleshooter.git
cd IntuneDeviceTroubleshooter

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.


Built and maintained by Jannik Reinhard · Microsoft MVP for Security and AI Platform.

Support the open-source work

Stay healthy, Cheers Jannik

About

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

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

38 stars

Watchers

4 watching

Forks

Releases

No releases published

Sponsor this project

Packages

 
 
 

Contributors