Jul 18 2023 12:13 AM
hey there,
i've been looking for some help, getting the deviceCategory from our hybrid joined devices. cause knowing the category would help me changing the name of our devices using a prefix and the serialnumber.
i already set the deviceCategory using the company portal and re-checked it within the endpoint manager --> devices --> properties
when i connect via microsoft.graph using poweshell i just find the default categories but my devices do not have any related deviceCategories (in this case there should be 'ITZ' set for the device W10-Intune3)
the end result should be a powershell script which renames the device using prefix-<<serialnumber>>. for this case its important to know the deviceCategory, cause we'll have a lot of different onces.
maybe someone ist facing the same problem
thanks a lot!