Skip to content

Bug in docu of Set-Content (in PS 7.2 LTS) #8802

@daxian-dbw

Description

@daxian-dbw

Prerequisites

  • Write a descriptive title.
  • Search the existing issues.
  • I am reporting the documentation problem for version of PowerShell I am using.

Version

7.0, 7.1, 7.2, 7.3 (preview)

Link to affected document

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/set-content?view=powershell-7#parameters

Description of the documentation error

Quoted from the doc:

-AsByteStream

Specifies that the content should be read as a stream of bytes. This parameter was introduced in PowerShell 6.0.

A warning occurs when you use the AsByteStream parameter with the Encoding parameter. The AsByteStream parameter ignores any encoding and the output is returned as a stream of bytes.

Shouldn't it be ?

Specifies that the content should be WRITTEN as a stream of bytes.

Suggested fix

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-managementArea - Microsoft.PowerShell.Management 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