Get-VmsHardware¶
SYNOPSIS¶
Gets existing Hardware devices added to recording servers on the currently connected management server.
SYNTAX¶
All (Default)¶
Filtered¶
Get-VmsHardware [-RecordingServer <RecordingServer>] [-Id <Guid>] [-RecorderId <Guid>] [-Name <String>]
[-CaseSensitive] [<CommonParameters>]
DESCRIPTION¶
The GetVmsHardware
cmdlet returns all hardware on all recording servers on
the currently connected management server, or all hardware on a specific
recording server.
REQUIREMENTS
- Requires VMS connection and will attempt to connect automatically
EXAMPLES¶
Get all hardware¶
Returns all hardware on all recording servers.
Get only enabled hardware¶
Returns all enabled hardware on all recording servers.
Get all hardware on a recording server¶
Returns all hardware on one recording server.
Get all hardware with Address and MAC¶
$macProperty = @{
Name = 'MACAddress'
Expression = { ($_ | Get-HardwareSetting).MACAddress }
}
Get-VmsHardware | Select-Object Name, Address, $macProperty
This example uses Select-Object
with a calculated property
to return a list of hardware names and addresses, along with the MAC. Calculated properties are a powerful feature of
the PowerShell language and allow you to combine and format information in whatever way you need.
PARAMETERS¶
-All¶
Obsolete. Specifies that all hardware from all recorders should be returned. This is the default behavior when no parameters are specified.
Type: SwitchParameter
Parameter Sets: All
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-CaseSensitive¶
Specifies that the Name parameter should be used to perform a case-sensitive filter. The default behavior is to filter based on case-insensitive matching.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: 50
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Id¶
Specifies the hardware ID of an existing hardware device.
Type: Guid
Parameter Sets: Filtered
Aliases: HardwareId
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Name¶
Specifies a name with support for wildcards.
Type: String
Parameter Sets: Filtered
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
-RecorderId¶
Specifies the ID of a recording server from which to retrieve hardware.
Type: Guid
Parameter Sets: Filtered
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-RecordingServer¶
Specifies a recording server object from which to retrieve hardware. Use
Get-VmsRecordingServer
to retrieve a recording server object.
Type: RecordingServer
Parameter Sets: Filtered
Aliases:
Required: False
Position: Named
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.