Error when trying to use KACE SMA API Powershell Module
Hello All,
I'm trying to connect the Powershell module here: https://www.itninja.com/blog/view/i-wrote-an-open-source-powershell-module-for-the-kace-sma-api
but when I try to run a command after authenticating with the server, I get this error.
Invoke-RestMethod : The remote server returned an error: (401) Unauthorized.At C:\Program Files\WindowsPowerShell\Modules\KaceSMA\2.0.1\private\New-ApiGETRequest.ps1:33 char:5
+ Invoke-RestMethod @IRMSplat
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
Does anyone know what I should troubleshoot next? I'm new to KACE, so it could be something simple.
One question that comes to mind though is, what user specifically should I use? I've been trying my admin user.
Thanks in advance for the help!
0 Comments
[ + ] Show comments
Answers (0)
Please log in to answer
Be the first to answer this question