Skip to content

Conversation

@prabuv-9
Copy link

@prabuv-9 prabuv-9 commented Jun 9, 2024

  1. Line 352: As suggested by @B1mbojr1,
    ConvertFrom-Json will not recognize the parameter -Depth 9, hence removed it.
  2. Line 317: This was mind-boggling, not sure who removed the 'Count' property from "Get-MgDeviceManagementManagedDevice", tried different ways included 'adding | measure in a different variable', the most seamless way to resolve this would be to save the $IntuneDevices as an array so the 'Count' property would be recognized in the rest of the script, otherwise the batch mode and success message with $Intunedevices.count fails.

prabuv-9 added 3 commits June 10, 2024 00:14
1. Line 352: As suggested by @B1mbojr1,
ConvertFrom-Json will not recognize the parameter -Depth 9, hence removed it.
2. Line 317: This was mind-boggling, not sure who removed the 'Count' property from "Get-MgDeviceManagementManagedDevice", tried different ways included 'adding | measure in a different variable', the most seamless way to resolve this would be to save the $IntuneDevices as an array so the 'Count' property would be recognized in the rest of the script, otherwise the batch mode and success message with $Intunedevices.count fails.
Remediate missing Count property in Get-MgDeviceManagementManagedDevice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant