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