Forum Discussion
Managing Intune Device Categories via Powershell
I have created a blog post about device category. At the end of this post you can also find a script how to change the category via a powersehll script. Hope this helps you.
Regards
Jannik
Jannik_ReinhardHi Jannik, thank you very much for your post. I hope you can still help me with a problem: I have to update the device category for about 500 devices of my company and these must be selected for a string present in the device name. For example, if the name of the device is "computer1-not" the category must be "pc laptop", in this case if the query finds the string "-not" in the name it must associate the category "pc laptop" to the device . How can I modify your script to achieve this? Thanks so much for the invaluable help. Marco
- Jannik_ReinhardNov 04, 2022Iron ContributorI have created a new script for you. This includes an filter. Depending of this filter is true or false other categories will be set. Hope this help you. Please let me know if you need some support.
https://github.com/JayRHa/Intune-Scripts/blob/main/Change-DeviceCategory/Change-DeviceCategoryMulti.ps1- Marco_Di_SilvestreNov 04, 2022Copper Contributor
Jannik_Reinhard thank you very much, I really appreciate your help. I'll try your script and let you know if all work fine.
Thanks!
Marco