By default, the output from your Windows PowerShell scripts is written to BDD.LOG. Table 175 lists the message types that appear in the BDD.LOG file and how those types of messages are generated by your script.

Table 175. BDD.LOG Message Types and Script Output That Generates Them

Message type

Generated by the following cmdlets

Informational

Any cmdlets that write to the Windows PowerShell console, such as Write-Host or Out-Host

Warning

Write-Warning cmdlet

Error

Write-Error cmdlet

The progress for your Windows PowerShell script is shown in the task sequence progress UI and is displayed as follows:

·     Progress is shown as a percentage of total completion for the current script and any messages that are being displayed.

·     Progress is updated using the standard Write-Progress cmdlet.

Note   Unlike some of the other scripts in MDT, a separate log file is not generated for the task sequence step running the Windows PowerShell script. Logging is only performed in the BDD.LOG file.

Related Topics

Create Windows PowerShell Scripts for Use in MDT