/build/static/layout/Breadcrumb_cap_w.png

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)

Be the first to answer this question

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ