Skip to content

Resolve-VmsDeviceGroupPath

SYNOPSIS

Returns a string representing the device group path in a way MilestonePSTools understands.

SYNTAX

Resolve-VmsDeviceGroupPath [-DeviceGroup] <IConfigurationItem> [<CommonParameters>]

DESCRIPTION

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.

EXAMPLES

EXAMPLE 1

Get-DeviceGroup -DeviceCategory camera -Path / -Recurse | Resolve-DeviceGroupPath

Returns all camera device group paths, recursively, as strings.

PARAMETERS

-DeviceGroup

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

System.String

NOTES

Online Help