Skip to content

Add a timestamp to transcript #24135

Open
@thekamilpro

Description

@thekamilpro

Summary of the new feature / enhancement

As a user, I want to have the ability to enable timestamps with Start-Transcript command,
so that when the transcript is saved it automatically prefixes the output with the date.

There would be a question whether the timestamp should default to current time on the machine, or to UTC.

Proposed technical implementation details (optional)

Start-Transcript ./log.txt -IncludeTimeStamp
Write-Host "This is a test"
Stop-Transcript
gc log.txt
2024-08-23:11:04 This is a test

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugNeeds-TriageThe issue is new and needs to be triaged by a work group.WG-ReviewedA Working Group has reviewed this and made a recommendationWG-Securitysecurity related areas such as JEA

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions