PrtgAPI: Adding new sensors not working after update to version 23.3.86.1520

Describe the bug

Hello,

After updating PRTG to version 23.3.86.1520, Adding sensors is not working any more. The error message : Could not authenticate to PRTG; the specified username and password were invalid

Steps to reproduce

Code Example:

Connect-PrtgServer -Server "https://prtgserver.com" (New-Credential "username" "passwd");
$device = Get-Device -Id 126556;
$device | New-SensorParameters -RawType ping | Add-Sensor

Result:

Add-Sensor : Could not authenticate to PRTG; the specified username and password were invalid.

What is the output of ‘Get-PrtgClient -Diagnostic’?

PSVersion      : 5.1.20348.1850
PSEdition      : Desktop
OS             : Microsoft Windows Server 2022 Standard
PrtgAPIVersion : 0.9.18
Culture        : fr-CH
CLRVersion     : 528449
PrtgVersion    : 23.3.86.1520
PrtgLanguage   : english.lng

Additional context

There is no issue with:

  • Add-Device
  • Set-ObjectProperty
  • Set-ChannelProperty

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 17 (5 by maintainers)

Most upvoted comments

Please be advised PrtgAPI 0.9.19 has now been released. Please do Update-Module PrtgAPI and then reopen your PowerShell session

Hi @imaderaya,

I have deployed a fix for this issue. Can you please follow the manual installation instructions and advise whether this issue is resolved in PrtgAPI 0.9.19-preview.2?