Author Posts

May 8, 2013 at 2:12 pm

I'm having a brain lapse here.  It has been a long day I guess.

Get-Service -servicename 'bits' | select status

Returns a column header Status with Running.

I just want to return Running.  I need to drop the header.

I know this works

(Get-Service -servicename 'bits').status

I cannot do that because I need to return a bunch of stuff.

May 8, 2013 at 2:30 pm

What about this?

Get-Service -servicename 'bits' | select  -expan status

 

May 8, 2013 at 3:17 pm

[quote=4385]What about this?

PowerShell

Get-Service -servicename 'bits' | select -expan status

1

Get-Service-servicename'bits'|select-expanstatus

[/quote]

 

Winner, winner, chicken dinner!  Thank you.  Like I said, long day.