Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

View previsou steps that fail

If you have a deployment of several steps....the output log shows for the last step.  more clicking and each and every pc is needed to see the output log of previous steps that didn't work.  Where are the STEPS listed to see fi they ALL worked or not?

 

I just think this can be improved.  : )

 

thank you!

0

Comments

1 comment
Date Votes
  • I wrote a PowerShell script I think you might find useful. It outputs every Step that has an error. Let me know if you want it to do something else.

    Run this:

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

    Read the warning, then run this:

    Get-PdqDeployment -IncludeComputers -IncludeSteps | ForEach-Object {

    $Deployment = $_

    $Deployment.Computers | ForEach-Object {

    $Computer = $_

    $Computer.Steps | Where-Object Error | ForEach-Object {

    $Step = $_

    if ( $Step.OutputFile ) {

    $OutputLog = "$env:ProgramData\Admin Arsenal\PDQ Deploy\Deployment Output\$($Step.OutputFile)"

    } else {

    $OutputLog = $null

    }

    [PSCustomObject]@{
    'Deployment ID' = $Deployment.DeploymentId
    'Package Name' = $Deployment.PackageName
    'Computer Name' = $Computer.Name
    'Step Number' = $Step.Number
    'Step Name' = $Step.Title
    'Return Code' = $Step.ReturnCode
    'Error' = ([XML]$Step.Error).Error.Message
    'Output Log' = $OutputLog
    }

    }

    }

    }
    0