Skip to content

FAQ

  • General

    Why are there errors in the output, but my command was successfully executed anyway?

    In PowerShell there are terminating and non-terminating errors. If you receive only non-terminating errors, by default the command finishes normally and is regarded as executed successfully. If you want the command to fail on error, you can change the default behavior by adding $ErrorActionPreference = "Stop"; in the beginning of your script.