Hi, i’m very new to this MilestonePStools and PowerShell in general and would appreciate some guidance. When trying to use MilestonePSTools to Export- HardwareCsv i’m asked to supply InputObjects. see below:
cmdlet Export-HardwareCsv at command pipeline position 1
Supply values for the following parameters:
InputObject[0]:
My hope is to create a CSV that i can then import to another Management server and recreate the same camera list in order to record two streams to 2 recording servers of the same cameras.
Hi Scott,
Just closing the loop on this, @Sebastian Giulietti (Milestone Systems) posted a solid answer to the same question on Github:
"Hello Scott. To export the Hardware Csv you need to provide the hardware list to the export command using the pipeline operator
In case you want to export all the hardware you can use the following script
Get-Hardware | Export-HardwareCsv -Path [c:\Temp\hardware.csv](file:c:/Temp/hardware.csv)
You can extend the information exported with the -full parameter
Get-Hardware | Export-HardwareCsv -Path [c:\Temp\hardware.csv](file:c:/Temp/hardware.csv) -Full
You can filter the hardware to be exported, the example below shows how to export only the hardware of the recording servers that name starts with the word “East”
Get-RecordingServer -Name East* | Get-Hardware | Export-HardwareToCsv -Path [C:\hardware.csv](file:C:/hardware.csv) -Full
You can always get help and examples on how to use Milestone PS Tools commands with the PowerShell built-in Get-Help command, for the Export-HardwareCsv run:
Get-Help Export-HardwareCsv -full"
Yes absolutely, in future I’ll reach out on GitHub. Thanks
Get Outlook for iOS<https://aka.ms/o0ukef>