The update script ADSelfService Plus

The update script ADSelfService Plus

Hi!

Is it possible to automatically find a new update and install it? I'd like to automate the process. The Powershell script issues an error during execution, I suspect that the Update Manager cannot take the .ppm update file.

Write-Log "Launching the bat file: $batFilePath with the parameters -c $ppmFilePath in the working directory $workingDirectory"
try {
    $process = Start-Process -FilePath $batFilePath -ArgumentList "-c `"$ppmFilePath`"" -WorkingDirectory $workingDirectory -Wait -NoNewWindow -PassThru
    if ($process.ExitCode -ne 0) {
        Write-Log "Error: The bat file has terminated with the error code: $($process.ExitCode)"
        exit 1
    }
    Write-Log "Bat file completed successfull"
}
catch {
    Write-Log "Error when executing the bat file: $_"
    exit 1
}

                  New to ADSelfService Plus?