This commit is contained in:
dfinke
2016-01-17 14:56:32 -05:00
parent acb02d222e
commit 2b7ffe0c12

View File

@@ -0,0 +1,10 @@
$f = ".\conditionalTextFormatting.xlsx"
rm $f -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
)