Hello,
When trying to limit the devices via a string in $IncludedDeviceNames the script fails with errors below:
"Write-error : Failed to get devices: The property 'Count' cannot be found on this object. Line 1626, char 9. "
"Write-error : Script execution failed: The property 'Count' cannot be found on this object. Line 1959 , char 5. "
Our device names are in the format XYZ12345. If the string is set to XYZ, the script works.
Adding in a full device name, including numbers, to test directly on a device causes the error. I wanted to set a specific device to verify that the process works as intended before taking it out of test mode.
We also have over 4k devices, but we are hitting the 400MB memory limit, so have had to disable the detailed report. It still produces the original report output, e.g. no sign in logs found for device, current primary user for device is missing etc.
Is there a way to switch the report around, disable the first half of the report, and only produce the detailed report part instead?
Hello,
When trying to limit the devices via a string in $IncludedDeviceNames the script fails with errors below:
"Write-error : Failed to get devices: The property 'Count' cannot be found on this object. Line 1626, char 9. "
"Write-error : Script execution failed: The property 'Count' cannot be found on this object. Line 1959 , char 5. "
Our device names are in the format XYZ12345. If the string is set to XYZ, the script works.
Adding in a full device name, including numbers, to test directly on a device causes the error. I wanted to set a specific device to verify that the process works as intended before taking it out of test mode.
We also have over 4k devices, but we are hitting the 400MB memory limit, so have had to disable the detailed report. It still produces the original report output, e.g. no sign in logs found for device, current primary user for device is missing etc.
Is there a way to switch the report around, disable the first half of the report, and only produce the detailed report part instead?