Skip to content

Commit 08dac93

Browse files
deadlydogsdwheeler
andauthored
docs: Mention PS 5.1 bug where Start-Transcript inverts when it should log Write-Information messages (#11803)
* docs: Mention Windows PowerShell 5 bug where Write-Information logic is reversed in Start-Transcript * Update note on `Start-Transcript` behavior editorial * Fix formatting issues in Start-Transcript documentation --------- Co-authored-by: Sean Wheeler <sean.wheeler@microsoft.com>
1 parent b01b7f5 commit 08dac93

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

reference/5.1/Microsoft.PowerShell.Host/Start-Transcript.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
266266
-WarningAction, and -WarningVariable. For more information, see
267267
[about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
268268

269+
269270
## INPUTS
270271

271272
### None
@@ -285,6 +286,13 @@ To stop a transcript, use the `Stop-Transcript` cmdlet.
285286
To record an entire session, add the `Start-Transcript` command to your profile. For more
286287
information, see [about_Profiles](../Microsoft.PowerShell.Core/About/about_Profiles.md).
287288

289+
> [!NOTE]
290+
> When you use `Start-Transcript`, the default value of `$InformationPreference` is changed to
291+
> `Continue`. Output from `Write-Information` is written to the console, but not to the transcript
292+
> file. If the `$InformationPreference` is set to `SilentlyContinue`, Information messages aren't
293+
> written to the console, but are written to the transcript file. This is fixed in PowerShell 6 and
294+
> higher.
295+
288296
## RELATED LINKS
289297

290298
[Stop-Transcript](Stop-Transcript.md)

0 commit comments

Comments
 (0)