Program 'PDQInventory.exe' failed to run: This operation requires an interactive window station
I'm running an Azure Runbook via a Hybrid Worker on an On Prem server, running Windows Server 2016 Datacenter.
The Runbook is a Powershell script that should run GetAllComputers from PDQInventory find the Machine a user is logged in as using PDQInventory GetComputer, and then use PDQDeploy Deploy to deploy a package to the user.
I am getting the following issue when running the GetAllComputers command:
"Program 'PDQInventory.exe' failed to run: This operation requires an interactive window station"
When I run in the powershell in a non-elevated window, I notice a new commandline window flashes up and displays the results before disappearing. When I run the powershell in an elevated window, it returns the results directly to the powershell window, instead of opening a new window.
Please can somebody help?