AssignSwAsPolicy / AssignSwAsPortal

Modified on Mon, 1 Sep at 1:19 PM

Policy/Portal 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.

All documentation can also be seen in the API Module.

 

 Usage:


Parameter:Description:
uri


string, optional
web Service URL
e.g.: http://coreservername/five9sWS/five9sWS.asmx
pat

string, mandatory
the Personal Access Token
computerIdns 

integer array
a list of target devices idns
hostnames 
string array
a list of target device names
requires Console version 5.1.30+
serialnumbersstring array
a list of target serial numbers
requires Console version 5.1.30+

You either need computerIdns, hostnames, or serialnumber so that the target devices can be identified
softwarePackageNames 

string array, optional
a list of software profile names to assign
ticketReference  

string, optional
specifies the personal access token for authentification
ticketDescription  

string, optional
add additional information to the console device history
requester


string, optional
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

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article