JustABearOz / PoshColor

Adds customizable color and themes to Powershell
MIT License
55 stars 5 forks source link

Error rendering Get-Service results under powershell #1

Closed JustABearOz closed 4 years ago

JustABearOz commented 4 years ago

When run under powershell (not powershell core), calling Get-Service results in the following error:

Write_Service : Cannot bind argument to parameter 'text' because it is an empty string.
At line:64 char:20
+         $handled = Write_Service $_
+                    ~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Write_Service], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Write_Service
JustABearOz commented 4 years ago

Powershell does not expose StartupType. ServiceControllerRenderer now displays 'Unknown' under powershell