Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-OMEDevice #27

Open
Bembelman opened this issue Jun 12, 2024 · 0 comments
Open

Get-OMEDevice #27

Bembelman opened this issue Jun 12, 2024 · 0 comments

Comments

@Bembelman
Copy link

Bembelman commented Jun 12, 2024

With this command I export all devices that belong to a group:
'StaticGroup1' | Get-OMEGroup | Get-OMEDevice | Select-Object DeviceName, Identifier, NetworkAddress | Format-Table

From a group with more than ~350 devices, however, not all devices are exported.
It took some time to find the cause, but I found the cause of the error in the "Get-Device.ps1" function.
If I make an adjustment in the following line, all devices in the group are exported.

Original (Version 3.8.0):
$RemainingDeviceUrl = $GroupUrl+"?$skip=$($currDeviceCount)&$top=$($delta)"

My Change in Get-OMEDevice.ps1:
$RemainingDeviceUrl = $GroupUrl+"?`$top=$(9999)"

Regards

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

No branches or pull requests

1 participant