Files
ImportExcel/Examples/ConditionalFormatting/ConditionalText.ps1
dfinke 2b7ffe0c12 Added
2016-01-17 14:56:32 -05:00

10 lines
325 B
PowerShell

$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
)