This commit is contained in:
dfinke
2016-01-18 10:01:36 -05:00
parent d7b59d8d3e
commit 4f1078b72c

View File

@@ -1,10 +1,11 @@
$f = ".\conditionalTextFormatting.xlsx" $file = ".\conditionalTextFormatting.xlsx"
rm $f -ErrorAction Ignore rm $file -ErrorAction Ignore
Get-Service | Get-Service |
Select Status, Name, DisplayName, ServiceName | Select Status, Name, DisplayName, ServiceName |
Export-Excel $f -Show -AutoSize -ConditionalText $( Export-Excel $file -Show -AutoSize -AutoFilter -ConditionalText $(
New-ConditionalText stop darkred New-ConditionalText stop
New-ConditionalText running darkblue New-ConditionalText runn darkblue cyan
New-ConditionalText app DarkMagenta New-ConditionalText -ConditionalType EndsWith svc wheat green
New-ConditionalText -ConditionalType BeginsWith windows darkgreen wheat
) )