Can we call PDQInventory.exe remotely?


1 comment

  • David Richmond

    If I'm reading this right, you are running this script on a random client but PDQ is installed on another device. PDQ is not installed, I'd wager, on the the local computer or you wouldn't be trying to launch the EXE via UNC. You can't just summon an EXE and execute it as if it's running in its actual environment. Because you are launching it from another computer and executing there with essentially no configuration, including (but not limited to) no license, it'll never work.

    Solution: use powershell remoting, psexec, remote WMI, etc to execute pdqinventory.exe commands on the remote computer itself. E.g., 

    Invoke-Command -ComputerName "I7X4-45G-10" -ScriptBlock {pdqinventory.exe UpdateCustomVariable SKU_Ver "2022.01.13.00"}

    YMMV! You could also, if licenses allow, install PDQ Inventory on the local computer in client mode and then dispense with any need to reach across the network.

    Comment actions Permalink

Please sign in to leave a comment.