petripaavola / IntuneDeviceDetailsGUI

Intune Device Details GUI
MIT License
318 stars 35 forks source link

Intune Device Details GUI ver. 3.0 (updated 2024-09-17)

Note! Script uses now Microsoft.Graph.Authentication module

Go script IntuneDeviceDetailsGUI.ps1

Version 3.0 shows Remediation scripts.

Version 2.985 update to Microsoft Graph module.

Version 2.982 update to Microsoft Graph module.

Version 2.98 update to Microsoft Graph module.

Version 2.974 is another bigger update.

Version 2.95 is a huge update to the script's functionalities. Built-in search helps using this tool a lot.

This Windows Powershell based GUI/report helps Intune admins to see Intune device data in one view

Especially it shows what Azure AD Groups and Intune filters are used in Application and Configuration Assignments.

Assignment group information helps admins to understand why apps and configurations are targeted to devices and find possible bad assignments.

GUI view

IntuneDeviceDetailsGUI_v2.95.gif

Features

Usage

Prerequisities:

Run script in Windows Powershell. Windows Presentations Framework (WPF) based GUIs don´t work with Powershell core.

Make sure you have installed Microsoft.Graph.Authentication module and allow running Powershell scripts

# Install Microsoft.Graph.Authentication module
Install-Module -Name Microsoft.Graph.Authentication -Scope CurrentUser

# Allow running Powershell scripts

# This allows running all signed scripts for current user
# This shows warning if script is not signed
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

# This allows running all scripts for current user
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser

Running the script

.\IntuneDeviceDetailsGUI.ps1
.\IntuneDeviceDetailsGUI.ps1 -Verbose

.\IntuneDeviceDetailsGUI.ps1 -Id 2e6e1d5f-b18a-44c6-989e-9bbb1efafbff
.\IntuneDeviceDetailsGUI.ps1 -IntuneDeviceId 2e6e1d5f-b18a-44c6-989e-9bbb1efafbff

# Pipe Intune objects to script
Get-IntuneManagedDevice -Filter "devicename eq 'MyLoveMostPC'" | .\IntuneDeviceDetailsGUI.ps1

# Or create Device Management UI with Out-GridView
# Show devices in Out-GridView and for selected device show IntuneDeviceDetailsGUI
Get-IntuneManagedDevice | Out-GridView -OutputMode Single | .\IntuneDeviceDetailsGUI.ps1

Intune user permissions needed to run this script

Future possible plans

Disclaimer

This tool is provided "AS IS" without any warranties so please evaluate it in test environment before production use. It is provided as Powershell script so there is no closed code and you can evaluate everything it does. Trust is important when using Administrative user rights and tools in your production environment. I use this tool daily in production environments I manage myself.