How to get an report with all new enrolled devices

How to Get a Report of All New Enrolled Devices

How to Get a Report of All New Enrolled Devices

Keeping track of newly enrolled devices in your organization can be a challenging task when relying solely on the Intune console. Wouldn’t it be awesome to receive a complete report with all new enrolled devices automatically via email? As you know, I love automating things. In this blog post, we’ll explore a simple and efficient way to generate a weekly report with all new enrolled devices using PowerShell, Azure Automation Runbooks, and Microsoft Graph API. This automated solution will save you time and effort, allowing you to focus on more important tasks in managing your organization’s devices. So, let’s dive in and learn how to create this valuable report with all new enrolled devices!

How to get an report with all new enrolled devices
Read More » How to Get a Report of All New Enrolled Devices
Endpoint analytics remediation script community repository

Endpoint analytics remediation script community repository

Endpoint analytics remediation script community repository

What could be better than working on a project together with others. Andrew Taylor, Joey Verlinden, Florian Salzmann and I have created a community endpoint analytics remediation script repository where we have written and added as many ready to use scripts as possible for you. In this blog post I want to give you more insights into these scripts and explain how you can integrate them into your environment.

Endpoint analytics remediation script community repository
Read More » Endpoint analytics remediation script community repository
Intune Wave Deployment: Create Smart Device Groups

Intune Wave Deployment: Create Smart Device Groups

Intune Wave Deployment: Create Smart Device Groups

How do you distribute configuration profile, apps or other configurations in Intune today? In this guide to Intune Wave Deployment I want to explain and provide a script how you can easily roll out objects in Intune using waves. Here I will help you to create smart device groups defined by you that will pack a specified percentage of your devices into the groups so that you can perform a slow rollout and thus guarantee the quality.

The current script describes how you can create device groups. When you validate these rollout waves, it can also be helpful to get assignments of a device via PowerShell. If you are also interested in how to apply this to user groups or how to create a automation for the assignment, check out my new version of the Intune group assignment script.

Intune Wave Deployment smart device groups for phased configuration rollout
Read More » Intune Wave Deployment: Create Smart Device Groups
Automate Intune Tasks with PowerShell and Microsoft Graph

Automate Intune Tasks with PowerShell and Microsoft Graph

Automate Intune Tasks with PowerShell and Microsoft Graph

Most have heard the term Microsoft Graph API before. Ms Graph is an interface from MS for accessing and controlling a variety of Microsoft cloud services. In this blog post I will go into more detail on how you can use Graph in conjunction with Intune, what your options are and how it all works. I’ll also give you PowerShell script examples in this blog that you can use directly.

PowerShell script for automating Intune tasks with Graph API
Read More » Automate Intune Tasks with PowerShell and Microsoft Graph
How to Export Intune Assignment Errors with PowerShell

How to Export Intune Assignment Errors with PowerShell

How to Export Intune Assignment Errors with PowerShell

Welcome to my first blog as a Microsoft MVP! This blog will focus on a script I built to export all Intune assignment errors in one click. I created it in response to a request from a member of the community who asked how to efficiently export all errors in Intune. Instead of manually sifting through numerous reports to find errors, my script automates the process with just one click, similar to how I used the Graph Report API for Intune mass exports in a previous post.

Not only does this make the task much more convenient, but it also allows you to run the script regularly to create a historical record or receive weekly error reports automatically, or use a similar approach like my Teams notification for the Top 5 apps with installation errors. Since this request can be helpful for several people within the community, I decided to create the script and blog about it.

PowerShell script exporting Intune assignment errors to CSV
Read More » How to Export Intune Assignment Errors with PowerShell
Get assignments of an device via Powershell

Get Assignments of a Device via PowerShell

Get Assignments of a Device via PowerShell

If you’ve ever stared at a misbehaving Intune device and asked yourself “which policies, profiles and apps are actually targeting this thing?”, you know how clunky the admin portal can be. Learning to pull the assignments of a device via PowerShell solves exactly that problem: given a Microsoft Entra ID device ID, the script returns every Intune assignment that resolves to it, joining direct device groups, dynamic device groups and user-based assignments through the device’s primary user. It’s the kind of script you’ll keep in your toolbox forever — handy when troubleshooting “why is this policy showing up?” tickets, indispensable when migrating tenants, and a great building block for larger automation.

Via the Intune admin center in the device overview you can see all assignments of a certain device. In the service release 2206 even the function to see the group members of a device was included. But if you want to create automations it is helpful to be able to query this information with PowerShell. I have created a script at the request of a user in the community which returns this information to you, so you can read the assignments of a device via PowerShell in seconds instead of clicking through blade after blade.

Get assignments of a device via PowerShell output in the console
Read More » Get Assignments of a Device via PowerShell
Easy way to analyse MDM Diagnostic data on the client

Easy way to analyse MDM Diagnostic data on the client

Easy way to analyse MDM Diagnostic data on the client

When an Intune-managed device misbehaves — a policy doesn’t apply, an app refuses to install, BitLocker silently fails — the truth lives on the client itself. Microsoft’s MDM Diagnostic Report bundles all of that into a single ZIP that contains everything from MDM event logs to current policy values. The problem is that browsing through the raw HTML, EVTX and registry exports is painful, and most admins never make it past the cover page. This post shows the simplest practical workflow I use to analyse MDM Diagnostic data on real client devices, extract the answers fast, and pick the few files you should open first to answer 80 % of all support questions.

In this blog I would like to give you a helpful tool to analyse MDM Diagnostic data directly on the client with the help of PowerShell, and how you can process the content in a simple way to implement remediations or to build a monitoring solution. The MDM Diagnostic data is the single richest source of truth for enrollment, policy and app state, so learning to read it quickly pays off on every support ticket. In the following sections I will explain step by step how you can use this script.

Easy way to analyse MDM Diagnostic data on the client with PowerShell
Read More » Easy way to analyse MDM Diagnostic data on the client
Intune mass export with the Graph Report API

Intune mass export with the Graph Report API

Intune mass export with the Graph Report API

There are many ways to do an Intune mass export of your data. For example, you can use Log Analytics, the Data Warehouse or the Graph API. But if you want to export several thousand devices or apps via Graph, it can happen that Graph has a paging. Paging means that you only get a certain number of entries with one call and then you have to make another call for the next range. This means for you that you have to write a script that loops through the pages.

Another problem if you want to export e.g. all Discovered apps you have to loop through all devices because this attribute is not shared in list calls. But if you have several 10k or 100k devices this takes a long time, which is exactly why an Intune mass export approach saves you so much effort.

But there is a Graph Report API that is designed for an Intune mass export of large amounts of data and provides it to you as a CSV in a really easy way. How you can use this Intune mass export method I will explain in this blog.

Intune mass export with the Graph Report API
Read More » Intune mass export with the Graph Report API
Intune Device Inventory UI

Intune Device Inventory UI

Intune Device Inventory UI

Anyone who has been working in the area of device management for a while knows that a good inventory is a very important prerequisite for good device management. With the Intune Device Inventory UI you finally get a custom inventory directly inside Intune that you can keep working with across your processes.

A very desired feature from you is to have a custom inventory directly in Intune with which you can then continue to work in certain processes. This is exactly what Florian Salzmann and I have taken up and developed a solution for you that solves exactly this problem. The Intune Device Inventory UI sits on top of the Intune Custom Inventory feature, which you can read more about in the official Microsoft Learn documentation.

Read More » Intune Device Inventory UI
Intune DevOps Pipeline: Move Objects from Dev to Prod Tenant

Intune DevOps Pipeline: Move Objects from Dev to Prod Tenant

Intune DevOps Pipeline: Move Objects from Dev to Prod Tenant

The more clients are managed in your tenant and the more people have contributor rights in your tenant, the more important it becomes to have good release management processes. In this blog post I would like to introduce you to my Intune DevOps pipeline that allows you to transfer configurations from one tenant to another. This Intune DevOps approach offers the possibility that only a small number of administrators have access in the Prod tenant and all others create configurations in a Dev tenant and these are then transferred to the Prod tenant via a DevOps pipeline.

Read More » Intune DevOps Pipeline: Move Objects from Dev to Prod Tenant