Add Color to a Column in Powershell Results
How can I add a different color to the Name Column. If it's possible will it keep the color if I export it to a txt file? $time = (Get-Date).AddYears(-2) Get-ChildItem -Recurse | `Where-Object {$_.LastWriteTime -lt $time} | ft -Wrap Directory,Name,LastWriteTime | Out-File spacetest.txt Thanks Take a look at (Get-Host).UI.RawUI.ForegroundColor. And no, you can not save color to a text file. You can save color into XML file, HTML file or use Excel or Word Automation to create appropriate files that do support color. Communary.ConsoleExtensions [link] might help you Invoke-ColorizedFileListing C: