Intune Tool Box – Rebuild of Intune in PowerShell

I think everyone who works with Intune on a daily basis knows the situation that they would like to have a simple feature that would simplify their daily work. In order to close exactly this gaps I decide to code my own tool with many small features that would make the life for Intune admins easier. This was the birth of the Intune Tool Box. This tool is a WPF application that is written in PowerShell. The app has the same design as Intune but offers small helpers for the daily work. The good thing is that this app is built in such a way that it can be easily extended at any time. If you have any features in your mind that you are missing in Intune console but is possible to solve this via graph so let me know that I can add this to the app. My plan is to develop the app step by step and bring in new cool features.

Features

Overall Environment View:

On the start page you can get an overview of your complete environment and see how many clients are enrolled per OS. Additionaly you see the count how many devices are compliant or not compliant and the count how many mdm only or hybrid enrolled devices are in your enviroment.

Group View:

In this view you get an overview from all groups in your environment with all the features know from the Portal.

Sync all devices:

This features helps you to sync all devices in a specific group. This could be helpful to shorten time until a change from the configuration is affective on all devices in a group. You only need one click and the sync will triggered on all devices in the group.

Group Overview:

I think you have often been in a situation where you wanted to see what is assigned to a group. Now you can easily see this in the overview.

Migrate Group:
In your environment you have multiple groups to create assignments of an app or a configuration profile. If you later realize it would be better if this was not a device group but a user group, it is hard to change this without the user having an impact or you have big efforts. With this function you can convert a user group into a device group or a device group into a user group based on the user assigned to a device or based on the devices assigned to the user. If you select migrate to device group you can also choose the operation systems you want to consider.

Duplicate Group:

Sometime you need exactly the same group but with small adjustments. In the Intune Console there is no feature to copy a group with the same member. This feature provides you exactly this possibilities.

Assign Items:

You know the situation you have a new group and want to assign them to different items. What you need to do is open each individual configuration profile, app, etc. and add the assignment. With the Intune Tool Box this is much faster. You select the group and assign everything you need very easily in th egroup view.

How does it work

This application is a WPF XAML application. That means the complete GUI is written in XAML. For this I have taken Visual Studio because the editor in Visual Studio offers a preview to see directly how the change looks. But what I learned is that it doesn’t always look good in the app if it looks good in the editor.

How can you use the Intune Tool Box

  • Make sure the the Powershell SDK is installed on your system. If not install the SKD using the following command:
Install-Module Microsoft.Graph -Scope CurrentUser
  • Execute the Start-IntuneToolBox.ps1
  • Have fun

Conclusion

I am happy that after hours of development I can release the first version of the Intune Tool Box. I am happy for everyone who tests my tool and gives me feedback and reports possible bugs. I am also happy about every idea how I can develop my tool further. I hope I can simplify your daily work with this tool. Have fun testing the Intune Tool Box.

Update 15.07.2022

If you get the following error on your system when executing the Intune Tool box:

You have to unblock the dll’s. Navigate for this the the libaries folder and click Unblock in the properties on each dll’s.

It may be that you need to restart your PowerShell session to get the error message gone.

16 thoughts on “Intune Tool Box – Rebuild of Intune in PowerShell

  1. Thank you. After running the script and authenticating against my user, Intune Tool Box begins to initialize but now I’m faced with this:

    Get-MgUserPhotoContent : {
    “errorCode”: “EnterpriseEntityNotFound”,
    “message”: “Accessing identity not a consumer, so async provisioning of mailbox (a.k.a. ‘shard’) for target identity was aborted”,
    “target”: null,
    “details”: null,
    “innerError”: null,
    “instanceAnnotations”: []
    }
    At C:\Users\jimenezep.a\Documents\Scripts\IntuneToolBox-main\IntuneToolBox-main\modules\utility.psm1:232 char:7
    + Get-MgUserPhotoContent -UserId $upn -OutFile $path
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidOperation: ({ UserId = JIMENEZEP.a@cooley.com }:f__AnonymousType5`1) [Get-MgUserPhotoContent_Get], RestException`1
    + FullyQualifiedErrorId : UnknownError,Microsoft.Graph.PowerShell.Cmdlets.GetMgUserPhotoContent_Get

    Like

Comments are closed.