Returns a string representing the device group path in a way MilestonePSTools understands.
Resolve-VmsDeviceGroupPath [-DeviceGroup] <IConfigurationItem> [<CommonParameters>]
The -DeviceGroup commands accept device groups in a unix file path format like "/first level/second level/third level" where each name separated by a slash is a child group of the group preceeding it.
The Get-DeviceGroup command returns an object representing a single device group and it is not immediately obvious what the hierarchy of the group is when inspecting the single group object. To remedy this, Resolve-VmsDeviceGroupPath will recursively look at the ParentPath property of the group and enumerate upward through the hierarchy until reaching the root of the device group tree. The names of all the parent groups along the path will be returned along with the name of the group.
Get-DeviceGroup -DeviceCategory camera -Path / -Recurse | Resolve-DeviceGroupPath
Returns all camera device group paths, recursively, as strings.
Specifies a device group object returned by commands like Get-DeviceGroup.
Type: IConfigurationItem Parameter Sets: (All) Aliases: Required: True Position: 0 Default value: None Accept pipeline input: True (ByValue) Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.