A PowerShell module for the Interlogix TruPortal API.
To avoid name collision between the cmdlet in this module and other cmdlets you can import this module with a prefix.
Import-Module -Name PSTruPortal -Prefix TP
Before you can send commands to the TruPortal you need to get a session key. You can save than save the session key to the script context so subsequent commands will be able to use the session key as long as the key is valid.
Invoke-LoginUser -Host 192.168.1.1 -Username user -Password 1234 | Set-ScriptContext
To signout a session key that is saved to the script context you can retrieve the key and pipe it to the logout cmdlet.
Get-SessionKeyFromScriptContext | Invoke-LogoutUser
- Interlogix and TruPortal are registered trademarks of Interlogix United Technologies.