Skip to content

A call to Get-WUHistory terminates Start-Transcript #57

@pierrejethro

Description

@pierrejethro

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions