MilestoneSystemsInc / PowerShellSamples

A collection of samples for managing your Milestone XProtect VMS using MilestonePSTools in PowerShell
https://www.milestonepstools.com
MIT License
36 stars 12 forks source link

Get-VMSHardware Serial Number #115

Closed Jaffe1986 closed 10 months ago

Jaffe1986 commented 10 months ago

I have a customer who wants to refer to their Cameras by Serial Number. I've tried everything I can think of with get-VMSHardware but have not come any closer to finding where the Serial Number is stored. Is pulling this piece of information possible at the moment?

I was hoping i could find it simply with something like

$cam = get-VMSHardware -name "Name" write-host $cam.SerialNumber

joshooaj commented 10 months ago

Hi @Jaffe1986,

The serial number, MAC address (often the same but not always), and other general hardware properties are available using Get-HardwareSetting:

$hardware | Get-HardwareSetting

Does that give you what you need?

Jaffe1986 commented 10 months ago

Aww @joshooaj

You are a life saver. This is exactly what I need.