Policy deployments can automate the installation of software on devices according to your rules and configurations. For ease of use, you need to import the Console-API-Module.
Usage:
API Endpoint: | http://coreservername/five9sWS/five9sWS.asmx |
Parameter 1: | pat (string, the Personal Access Token) |
Parameter 2: | computerIdns (integer array of target device idns) |
Parameter 3: | softwarePackageNames (string array, list of software package names to assign) |
Parameter 4: | ticketReference (string, specifies the personal access token for authentification) |
Parameter 5: | ticketDescription (string, add additional information to the console device history) |
Parameter 6: | requester (string, name of the user that assigned the software to diplay in console device history) |
Get started with the following PowerShell:
Import-Module $PSScriptRoot\Console-API-Module.psm1 -Verbose -Force #you need to execute this line once, so that powershell can offer intelliSense support # Arrange the parameters $wsdlUrl = "http://coreserver/five9sWS.asmx?wsdl" # web service URL, you need to replace the 'coreserver' with your actual value $pat = "879067F0F16_YourPatHere_024214A4" $computerIdns = 2,10382 $softwarePackageNames = @("CLU HTTP", "Gimp") # Action Invoke-AssignSwAsPolicy-uri $wsdlUrl -pat $pat -computerIdns $computerIdns -softwarePackageNames $softwarePackageNames
The result from the request will look like this:
Software assignment done. Here is a list of assignments:
[CLU HTTP, 1]
[Gimp, 1]
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article