Created
January 16, 2026 17:29
-
-
Save joshooaj/e1c192ca375295a2c52d523bb37c0ad8 to your computer and use it in GitHub Desktop.
Extend the output of Get-VmsCameraReport with Axis Zipstream properties
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Get-VmsCameraReport | ForEach-Object { | |
| $row = $_ | |
| $camera = Get-VmsCamera -Id $row.Id | |
| $stream = $camera | Get-VmsCameraStream -RecordingTrack Primary | |
| $settings = 'ZFpsMode', 'ZGopLength', 'ZGopMode', 'ZStrength' | |
| foreach ($setting in $settings) { | |
| $splat = @{ | |
| MemberType = 'NoteProperty' | |
| Name = $setting | |
| Value = $stream.Settings.$setting | |
| } | |
| $row | Add-Member @splat | |
| } | |
| $row | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment