Home Dashboard Directory Help
Search

Color and out-gridview by Antechinus


Status: 

Active


2
0
Sign in
to vote
Type: Suggestion
ID: 788347
Opened: 5/21/2013 7:04:06 PM
Access Restriction: Public
1
Workaround(s)
view

Description

Would it be possible to enable color in out-gridview? I’d like, for example, when viewing services to be able to make started services green and stopped services red.

If this is possible, it would be good to have some of the features available in HTML and Excel:
•    text color and/or background color
•    a wide color palette (so we can use e.g. “Salmon Pink” rather than Red), e.g. by allowing hex triplet color codes
•    conditional formatting (e.g. a red to green color scale)

[A workaround at the moment is to copy the data from the grid into Excel, and apply color formatting to it in Excel.]
Details
Sign in to post a comment.
Sign in to post a workaround.
Posted by AussieJohn on 8/28/2013 at 8:54 PM
Useful (conditional) colored output from PowerShell to HTML is possible if you add some simple JavaScript:
http://powershell.com/cs/forums/t/5335.aspx
This seems a neat way to get a report of services, with stopped services marked red and running services marked green.