mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-10 13:23:29 +00:00
10 lines
325 B
PowerShell
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
|
|
) |