Sends a MessageCommunication.ProvideCurrentStateRequest message and returns the response.
The ProvideCurrentStateResponse contains a flat collection of ItemState objects representing the state of all known items in the site.
Each ItemState contains an FQID, and State property.
The FQID.Kind and FQID.ObjectId can be used to determine what type of object the state represents, and the ID of that object.
Most of the time, you will probably only be interested in Camera objects, so you can filter the output with the -CamerasOnly switch.
REQUIREMENTS
Requires VMS connection and will attempt to connect automatically
Get-ItemState-CamerasOnly|Where-ObjectState-ne"Responding"|Foreach-Object{$camera=Get-VmsCamera-Id$_.FQID.ObjectId;Write-Warning"Camera $($camera.Name) state is $($_.State)"}
Write a warning for every camera found with a state that is not "Responding"
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.