Microsoft Intune – Where is my filter used?

Microsoft Intune – Where is my filter used?

Introduction

Have you started using the awesome filters in MEM? If the answer to this question is NO, then you should get started and try them out. I did a blog post on how to get started with filters and you can read more here

 

But what if you already have an environment where you use filter?

The customers that I work with use filters and widely deploy to either “all users” or “all devices” where filter make more granular decisions for us. It simply works great, and we cross our fingers for even more granular controls in the future.

But what if I wanted to know where my filter is used?

Currently we have no option to see that in Intune (oh yes, we do, but who wants to go to every single assignment and check?!), this is where Microsoft Graph comes to the rescue!

 

Create filters in Microsoft Intune | Microsoft Docs

Picture source: Create filters in Microsoft Intune | Microsoft Docs

 

Requirements

  • Microsoft Intune
  • Access to Microsoft Graph

 

Find out where my filter is used

First we go to our browser and look at David Falkus awesome collection of scripts

Go to raw and copy the whole thing.

clip_image002

 

Go to Windows PowerShell ISE and paste the code:

clip_image004

 

Click the run button

clip_image006

 

Insert your username

clip_image008

 

Insert your filter name:

clip_image010

 

From the Intune portal you can see the names: (I will try with DeviceName start with AADONLY)

clip_image012

 

Insert the filter name in the PowerShell window

clip_image014

 

Let it work and see the results:

clip_image016

clip_image018

Job done and based on these information’s we can determine the risk of changing in the current filter or if we should create a new one and where to replace it.

 

Summary

Using filters in Microsoft Intune is here and supports more and more assignments in Microsoft Intune as we move forward.

Use it where you can, and your environment speed will love you for it.

Happy filtering!

Table of Contents

Share this post
Search blog posts
Search
Authors
Modern Workplace consultant and a Microsoft MVP in Enterprise Mobility.
Modern Workplace consultant and a Microsoft MVP in Windows and Devices for IT.

Infrastructure architect with focus on Modern Workplace and Microsoft 365 security.

Cloud & security specialist with focus on Microsoft backend products and cloud technologies.

Cloud & security specialist with focus on Microsoft 365.

Cloud & Security Specialist, with a passion for all things Cybersecurity

Cloud and infrastructure security specialist with background in networking.

Infrastructure architect with focus on design, implementation, migration and consolidation.

Infrastructure consultant with focus on cloud solutions in Office365 and Azure.

follow us in feedly
Categories

Follow on SoMe