API for remote Powershell deployment



  • Nick Empson

    My script:

    Invoke-Command -ComputerName "pdqserver" -Credential $credentials
    Comment actions Permalink
  • Colby Bouma

    Unfortunately, no, Deploy and Inventory do not have an API. To monitor the status of a deployment, you have to query the database. However, my PowerShell module PdqStuff has a cmdlet Get-PdqDeployment that makes it easy to pull deployment data out of the database.

    Install-Module -Name 'PdqStuff'
    Import-Module -Name 'PdqStuff'

    Read the warning, then:

    Get-Help -Name 'Get-PdqDeployment' -Full


    Also, I recommend making sure you're not accidentally breaking the licensing terms, such as by using shared credentials: https://www.pdq.com/licensing/

    Comment actions Permalink

Please sign in to leave a comment.