I am using the power shell script to create / update assets that was listed in another post here :
https://forum.itflow.org/d/160-trmm
I am running into this error :
Asset does not exist - Creating...
Invoke-RestMethod : The remote server returned an error: (401) Unauthorized.
At C:\ProgramData\TacticalRMM\2469290460.ps1:137 char:10
+ $write = Invoke-RestMethod -Method Post -Uri $uri_write -Body $body
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc
eption
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
Can anybody point me in the right direction to correct ?