Closed TheHolyMecca closed 2 months ago
Does the cmdlet work ? because can't make work with -bodyparameter or -devicecategory, eveytime he result with an error `$Params = @{ DeviceCategory = @{ "DisplayName" = "$NewCategory"} } | ConvertTo-Json try {
Update-MgDeviceManagementManagedDevice -ManagedDeviceId $Device -BodyParameter $Params `
Originally posted by @SamSepiolWarden in https://github.com/microsoft/Intune-PowerShell-SDK/issues/145
It seems you are not using jsonpath-plus.
Does the cmdlet work ? because can't make work with -bodyparameter or -devicecategory, eveytime he result with an error `$Params = @{ DeviceCategory = @{ "DisplayName" = "$NewCategory"} } | ConvertTo-Json try {
Changer la category
Update-MgDeviceManagementManagedDevice -ManagedDeviceId $Device -BodyParameter $Params `
Originally posted by @SamSepiolWarden in https://github.com/microsoft/Intune-PowerShell-SDK/issues/145