Skip to content

Tips for progressing past task sequence step "Run PowerShell Script" #249

@Xavierstarr

Description

@Xavierstarr

I have a few PowerShell Scripts that I have run between Windows Update Pass 1 and Pass 2

I have one script that pops out a grid view to select an item from a list to trigger a specific app install via invoke-webhook to $env:TEMP/Installer.exe then start-process $env:TEMP/Installer.exe

it installs ok but task sequence does not progress pass this step and we need to manually terminate and trigger PSDFinal.ps1 to cleanup.

I have exit codes and try catch methods, the script runs fine but it's not triggering task sequence to progress.

even tried:

$process = start-process $env:TEMP/Installer.exe
Write-Output "Waiting for install to complete"
$process.WaitForExit()
Write-Output "Installation completed"
exit 0

any tips to help task sequence to detect this is done and progress?

The other scripts I have are just debloating and branding which work fine, any tips would be lovely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions