Can't receive data from scripts (unauthorized) on dashboard. Works on a Page

So, I’ve been able to get data from a script out into a table on a Page.

When trying to get data from scripts/jobs on a dashboard with Get-UAScript or Get-UAJob, I’m getting a Call failed with status code 401 (Unauthorized). From what I’ve read, I shouldn’t have to provide a token for these, correct?

Product: PowerShell Universal
Version: 2.5.4

Well, I’ve confirmed it will work if I add Connect-UAServer and provide an AppToken… But as I said, from what I’ve read, I didn’t think it was needed. Any assistance or clarification would be appreciated.

Thanks all!

If you want to use the script cmdlets, I’d suggest use the -Integrated switch we added in 2.5. It doesn’t require app tokens. Then you won’t need to call Connect-PSUServer

Get-UAJob -Id 123 -Integrated

I missed the switch, I’ll give it a shot! Thank you!