PSWindowsUpdate icon indicating copy to clipboard operation
PSWindowsUpdate copied to clipboard

A call to Get-WUHistory terminates Start-Transcript

Open pierrejethro opened this issue 5 months ago • 0 comments

On PowerShell 5.1, if I call Get-WUHistory after calling Start-Transcript, when executing Stop-Transcript, it shows the Transcript has already been terminated. This simple script will validate the issue

Start-Transcript
Get-WUHistory
Stop-Transcript

The following error is generated:

Stop-transcript : An error occurred stopping transcription: The host is not currently transcribing.
At line:1 char:1
+ Stop-transcript
+ ~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Stop-Transcript], PSInvalidOperationException
    + FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.StopTranscriptCommand

Is this module even maintained anymore? I still need to support PS 5.1. This issue is NOT present in PS 7.

Thanks

pierrejethro avatar Aug 07 '25 22:08 pierrejethro