Skip to content

Export-HardwareCsv

SYNOPSIS

[Deprecated] Exports basic hardware information from a Milestone VMS to a CSV file

SYNTAX

Export-HardwareCsv -InputObject <Hardware[]> [-Path] <String> [-Full] [<CommonParameters>]

DESCRIPTION

This command is deprecated in favor of Export-VmsHardware.

Exports hardware information to a CSV file. The following fields are included by default:

  • HardwareName
  • HardwareAddress
  • MacAddress
  • UserName
  • Password
  • DriverNumber
  • DriverDisplayName
  • RecordingServerName
  • RecordingServerId

Exporting with -Full will also retrieve all hardware information available through the Configuration API and save a JSON object for each hardware in a file adjacent to the CSV.

The name of the *.JSON files will be the name of the CSV, plus the hardware ID, and a column named "ConfigurationId" will be added to the CSV as a reference to the configuration corresponding to each row in the CSV.

EXAMPLES

EXAMPLE 1

Connect-ManagementServer -Server localhost

Get-Hardware | Export-HardwareToCsv -Path C:\hardware.csv

Logs into the local Management Server as the current Windows user and exports all hardware information to C:\hardware.csv

EXAMPLE 2

Connect-ManagementServer -Server localhost

Get-RecordingServer -Name East* | Get-Hardware | Export-HardwareToCsv -Path C:\hardware.csv -Full

Logs into the local Management Server as the current Windows user and exports all hardware information from all Recording Servers with names beginning with 'East', to C:\hardware.csv, and includes full hardware configuration details which will be saved to C:\hardware_*.json

PARAMETERS

-Full

Export full hardware configuration data into an adjacent JSON file

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-InputObject

Array of Hardware objects to be exported to CSV

Type: Hardware[]
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Path

Full path, including file name, where the CSV will be saved

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
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

NOTES

Online Help