Skip to content

Update Start-Transcript use with relative paths #12485

@SteveL-MSFT

Description

@SteveL-MSFT

Prerequisites

  • Existing Issue: Search the existing issues for this repository. If there is an issue that fits your needs do not file a new one. Subscribe, react, or comment on that issue instead.
  • Descriptive Title: Write the title for this issue as a short synopsis. If possible, provide context. For example, "Typo in Get-Foo cmdlet" instead of "Typo."
  • Verify Version: If there is a mismatch between documentation and the behavior on your system, ensure that the version you are using is the same as the documentation. Check this box if they match or the issue you are reporting is not version specific.

Links

PowerShell/PowerShell#25907
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.host/start-transcript?view=powershell-7.5#-outputdirectory

Summary

Start-Transcript when using -OutputDirectory if the user specifies a relative path, it is relative to their Documents folder and not the current working directory. The docs should explicitly mention this behavior and also include an example on using Resolve-Path on how to use a relative path with this cmdlet.

Details

No response

Suggested Fix

No response

Metadata

Metadata

Assignees

Labels

area-hostArea - Microsoft.PowerShell.Host moduleissue-doc-bugIssue - error in documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions