-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invoke-AutomateAPIMaster : An error has been thrown. #67
Comments
Are you a Super Admin? Can you tell me the exactly sequence of commands you ran from opening PowerShell? Your output has a space in the - Allclients too want to make sure that's not related. |
Here is what I am running. I am a super admin in LT. a local admin of the machine I am on. I get the same error running it on the automate server as well. I have tried downloading the module directly from github and always get the same errors. AV has been disabled as well. PS C:\WINDOWS\system32> Connect-AutomateAPI PS C:\WINDOWS\system32> Get-AutomateClient -AllClients
|
Could you try Get-AutomateComputer -ComputerID 12345 Pick a computer ID you know exists. |
PS C:\WINDOWS\system32> Get-AutomateComputer -ComputerID 39569
|
I can't replicate this. I would suggest you step through the code and figure out where it's going wrong and maybe I can give more information from there. |
I can connect to the api but I can't pull any information. I get misc errors regarding Invoke-AutomateAPIMaster
(tested on multiple computers. PowersShell version: 5.1.19041.546 )
Get-AutomateClient - Allclients
Invoke-AutomateAPIMaster : An error has been thrown.
at Invoke-AutomateAPIMaster, C:\Users\REDACTED\Documents\WindowsPowerShell\Modules\automateapi\1.1.4\Private\Invoke-AutomateAPIMaster.ps1: line 75
at Get-AutomateAPIGeneric, C:\Users\REDACTED\Documents\WindowsPowerShell\Modules\automateapi\1.1.4\Public\Get-AutomateAPIGeneric.ps1: line 146
at Get-AutomateClient, C:\Users\REDACTED\Documents\WindowsPowerShell\Modules\automateapi\1.1.4\Public\Get-AutomateClient.ps1: line 85
at , : line 1
-->
-->
At C:\Users\REDACTED\Documents\WindowsPowerShell\Modules\automateapi\1.1.4\Public\Get-AutomateAPIGeneric.ps1:146 char:27
The text was updated successfully, but these errors were encountered: