Hi
When setting up new Milestone systems in new locations we import the camera hardware in as disabled so we don’t impact the existing system. When we are ready to cut over I want to be able to enable the hardware devices via the MilestonePSTools. Is there a way to do this?
Thanks
Ian
Hi Ian,
Have a look at https://developer.milestonesys.com/s/article/How-To-Use-MilestonePSTools-PowerShell-Module, there are a lot of great examples and probably something that will answer your question.
Citing that article:
"Because this is an independent project and is not an initiative driven by R&D, it is not a tool that can be supported by Milestone’s technical support team.
. . .
While this module is provided to the community as-is, Josh is happy to receive feedback or bug reports directly for now by email at jh@milestonesys.com."
Kind regards
Peter Ring
Hi Ian,
Many actions can be done with “pure PowerShell” while some require you to use methods on the objects the cmdlets return.
You could get all hardware on a system with…
$disabledHw = Get-Hardware | Where-Object Enabled -ne $true
An individual hardware device could be enabled like so
$hw.Enabled = $true
$hw.Save()
Finally, you’ll want to do something similar with the child devices like cameras and microphones as they’ll be disabled by default as well I believe.
The enabled/disabled status, name, description, and properties like GPS position/orientation would be set this way as well - modify the properties on the object and call Save() when finished.
Thanks Josh
I’d missed the Save step. Now its working. Loving the Powershell tools
Cheers
Ian
Glad to hear it Ian - let me know if you run into any other snags!