Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

out-file producing weird characters #16730

Copy link
Copy link
@computechrr

Description

@computechrr
Issue body actions

Prerequisites

Steps to reproduce

When using out-file with or without specifying any encoding the file has some weird characters at the beginning of the file

�[32;1m NPM(K) PM(M) WS(M) CPU(s) Id SI ProcessName�[0m
�[32;1m ------ ----- ----- ------ -- -- -----------�[0m

I've tried this on different computers all using ps 7.2.1, windows 10, server 2016 etc. When using the same get-process |out-file with powershell 5.1 it works as expected without those characters.

Expected behavior

NPM(K)    PM(M)      WS(M)     CPU(s)      Id  SI ProcessName

Actual behavior

�[32;1m NPM(K)    PM(M)      WS(M)     CPU(s)      Id  SI ProcessName�[0m

Error details

No response

Environment data

7.2.1

Visuals

image

vanbang9710

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.