AssignSwAsPortal

Modified on Fri, 17 Nov 2023 at 01:42 PM

Rather than automatically pushing software to devices based on policies, the portal allows users to pull the software via self-service at a convenient time for them.

For ease of use, you need to import the Console-API-Module.

All documentation can also be seen in the API Module.

 


Parameter:Description:
uri


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

string, mandatory
the Personal Access Token
computerIdns 

integer arrray, mandatory
a list of target devices idns
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-AssignSwAsPortal -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 atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article