By default, if your Windows PowerShell script reports a terminating error or non-zero return code, the task sequence step will fail and stop running (unless you have configured the step to ignore the generated return code).
Table 176 lists the predefined return codes that MDT returns and provides a brief description of each. Any other return codes not listed in Table 176 were returned by the Windows PowerShell script.
Table 176. Predefined Windows PowerShell Script Return Codes
Return code |
Description |
10901 |
Unable to find the Windows PowerShell script in the location specified. |
10902 |
No Windows PowerShell script was specified in the task sequence step. |
10903 |
A terminating error was reported by the Windows PowerShell script. |
Related Topics