-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
I'm getting a json error when I try to connect, not entirely sure why.
$Server = 'na.myconnectwise.net'
# This is the company entered at login
$Company = 'ABC'
# Create a credential object
$Credentials = Get-Credential
# Load the module into memory
iwr 'https://raw.githubusercontent.com/LabtechConsulting/ConnectWise-Manage-Powershell/master/CWManage.psm1' | iex
# Connect to Manage server
Connect-CWM -Server $Server -Company $Company -Credentials $Credentials
Connect-CWM -Server $Server -Company $Company -Credentials $Credentials
ConvertFrom-Json : Invalid JSON primitive: Cannot.
At line:792 char:52
+ $global:errDetails = $_.ErrorDetails | ConvertFrom-Json
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [ConvertFrom-Json], ArgumentException
+ FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.ConvertFromJsonCommand
WARNING: Authentication failed. Clearing connection settings.
Metadata
Metadata
Assignees
Labels
No labels