Using Get-PSUJob to get parameters passed in dashboard not working
@Support
I am having issues pulling the parameters from a job using Get-PSUJob.
The parameters in the JSON is null, as I was testing via API.
I seen some posts similar to what I am trying to do:
Product: PowerShell Universal Version: 1.4.6 Is there any way to return the job params? Get-PSUJob -Script (Get-PSUScript -Name ‘HelloWorld.ps1’ -Integrated) -OrderDirection Descending -First 1 -Integrated [image] [image]
Product: PowerShell Universal Version: 3.3.6 Good morning, I have an endpoint calling get-psujob and noticed that its not returning the job parameters. This would be good information to have. $Parameters = @{ Url = "/job" Method = @('GET') Endpoint = { $null = Connect-PSUServer -ComputerName $HostName -AppToken $AppToken return Get-PSUJob -Id 14288 } } New-PSUEndpoint @Parameters [image] [image]
Product: PowerShell Universal Version: 4.1.4
Recommended Answer
I see the issue with this one and it’s due to the integrated mode. If you were to run these commands outside of the integrated environment, it would include the parameters.
# This should work Get-PSUJob -Id 123 -ComputerName localhost:5000 -AppToken ""
That said, we can get this fixed for the next 4.1 build.
Adam Driscoll
PowerShell Expert and Developer at Devolutions
I see the issue with this one and it’s due to the integrated mode. If you were to run these commands outside of the integrated environment, it would include the parameters.
# This should work Get-PSUJob -Id 123 -ComputerName localhost:5000 -AppToken ""
That said, we can get this fixed for the next 4.1 build.
Adam Driscoll
PowerShell Expert and Developer at Devolutions
Thank you Adam!