IvantiPS is a PowerShell module to interact with the Ivanti Service Manager (ISM) REST API.
The IvantiPS module is for doing data operations on business objects of the Ivanti Service Manager. It is built around the Ivanti Service Manager Rest API.
- Powershell 3.0 or greater
Install IvantiPS from the PowerShell Gallery
Install-Module IvantiPS -Scope CurrentUserYou may also clone this repo, build, then import the module
Invoke-Build -Configuration Release -Verbose
Import-Module (Get-ChildItem .\Output\IvantiPS\*.psd1 -recurse) -force -verboseAfter installing and importing, the module config must be set with a valid Ivanti tenant name.
Set-IvantiPSConfig -IvantiTenantID tenantname.ivanticloud.com -DefaultRole SelfService -AuthType SessionIDConnect with set of credentials
$Credential = Get-Credential
Connect-IvantiTenant -Credential $CredentialIf already authenticated to an Invanti tenant, the existing SessionID may be used. Open browser developer tools, find the cookie in Request headers, and the SessionID is the SID attribute in the cookie: SID=tenantname.ivanticloud.com#GUPLABCNQ04GU8U248KQJ16TOVR4LASR#3;
$sessionID = 'tenantname.ivanticloud.com#GUPLABCNQ04GU8U248KQJ16TOVR4LASR#3'
Connect-IvantiTenant -SessionID $sessionID