powershell-sdp icon indicating copy to clipboard operation
powershell-sdp copied to clipboard

Interact with the ManageEngine ServiceDesk Plus API using PowerShell.

PowerShell Module: ServiceDeskPlus

PowerShell module focused on manipulating the ManageEngine ServiceDesk Plus API.

Setup

Clone the module into your PowerShell modules directory:

git clone "https://github.com/devynspencer/powershell-sdp" "$env:USERPROFILE\Documents\WindowsPowerShell\Modules\ServiceDeskPlus"

Alternatively, create a symlink:

$ProjectPath = "$env:USERPROFILE\projects\powershell-sdp"
$InstallPath = "$env:USERPROFILE\Documents\WindowsPowerShell\Modules\ServiceDeskPlus"

cmd /c mklink /d $InstallPath $ProjectPath

Add your ServiceDesk Plus API key and server URI to your PowerShell profile as default parameter values:

# Update default parameters hash with SDP API key and server URI
$PSDefaultParameterValues["*-ServiceDesk*:Uri"] = "https://sdp.example.com"
$PSDefaultParameterValues["*-ServiceDesk*:ApiKey"] = "B42550F3-006D-48EB-8011-F6C7D6323EE7"