-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
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 ProcessNameActual behavior
�[32;1m NPM(K) PM(M) WS(M) CPU(s) Id SI ProcessName�[0mError details
No response
Environment data
7.2.1Visuals
vanbang9710
