Intune Device Checker
This little tool we developed for our support engineers might help you.
The Intune Device Checker tool will show basic information about a device, including hardware information, group tag and compliance status. It additionaly can show information on failed remediation scripts and application installs. The tool has a graphical user interface and the information is shown text based, so it can be easily copied.
The tool has 4 major parts:
- The form
- Search for the device
- Display the device information
- The remediation and application check
The form
The form we have used is based on the GUI Template created by "By Hugo Gungormez AKA KamikazeAdmin ;)" from 21/10/2021, which is using the Windows Forms. See How to build a colourful GUI for PowerShell using Winforms, Runspace Pools and Hash Tables
We have adjusted this form to our needs. It consists, next to a number of buttons, of 2 main parts, the search input and the output area.
Search for the device
The first step is to search for the device, you can search on UPN, device name or serial. For the search on UPN, the domain of the signed in user is used to validate the input.
The search on serial is done on the complete input value, but also on smaller parts of the search string, in every step removing the first character till a minumum of 6 characters.
When the Admin doesn't have permissions for a device due to the RBAC role the admin is in, the tool only returns the Autopilot info, if found, including the group tag.
Below the flow of the search:
When search on UPN, an additional selection popup is shown when more then one device is found for the user.
If only one device was found for the user (or only one is in your scope), the information is directly shown.
Display the device information
When we have found the device in Intune, the infomation will be shown in the output area of the form. This information is text based and can easily be copied and pasted to for instance a incident ticket. The information displayed is depending on the type of device, the information shown includes:
- Device name and ID
- UPN of the primary and enrolled by user
- Group tag from Autopilot
- Scope tags
- Model, serial number and bios version
- Available and free diskspace
- Physical memory
- Jail broken and lost mode status
- Teleco provider info
- The device and compliance state
- The compliance information
Next to the overall compliance state, the state of all compliance policies assigned to the device are shown. If any of the policies not compliant or shows an error, All underlying setting will be listed with there state and, if applicable, the error.
The remediation and application check
At the bottom of the screen there are buttons to check for failed remediations and application installs. Both check will only show any failed remediation script or application install.
Prerequisites
- PowerShell 4.0 and up
- .Net framework 2.0 and up
- Reader permissions in Intune
- Microsoft.Graph.Authentication
Comments
Post a Comment