Thank you, Mark!
Now, I'm getting the following output:
USMDSLAB204 Application... AeLookupSvc Share Process Auto
Running C:\WINDOWS\... LocalSystem
USMDSLAB204 Alerter Alerter Share Process Disabled
Stopped C:\WINDOWS\... NT AUTHORIT...
USMDSLAB204 Application... ALG Own Process Disabled
Stopped C:\WINDOWS\... NT AUTHORIT...
USMDSLAB204 Application... AppMgmt Share Process Manual
Running C:\WINDOWS\... LocalSystem
USMDSLAB204 Application... aqagent Own Process Auto
Running "C:\Program... LocalSystem
USMDSLAB204 ASP.NET Sta... aspnet_state Own Process Manual
Stopped C:\WINDOWS\... NT AUTHORIT...
I need to show the full string for all the columns, with no abbreviations.
Is there any parameter I am missing?
Here is the command:
gwmi Win32_service -ComputerName $strServer | format-table SystemName,
DisplayName, Name, ServiceType, StartMode, State, PathName,
StartName -hidetableheaders | Out-File -filepath "Services.txt" -append
Thank you again,
Carlos Felipe França da Fonseca
"Mark Schill" <Mark.Schill@newsgroup> wrote in message
news:ODiRnG#lKHA.2132@newsgroup
> Just add the -HideTableHeaders parameter of Format-Table
>
> On 1/17/2010 8:34 PM, Carlos Felipe França da Fonseca wrote:
> I get the following output with the command below:
>
> gwmi Win32_service -ComputerName | format-table SystemName, DisplayName,
> Name, ServiceType, StartMode, State, PathName, StartName
>
> SystemName DisplayName Name ServiceType StartMode
> State PathName StartName
> ---------- ----------- ---- ----------- ---------
> ----- -------- ---------
> USMDSLAB204 Application... AeLookupSvc Share Process Auto Running
> C:\WINDOWS\... LocalSystem
> USMDSLAB204 Alerter Alerter Share Process Disabled
> Stopped C:\WINDOWS\... NT AUTHORIT...
> .
> .
> .
>
> I would get the same list without the headers.
> How to do it?
>
> Thanks,
>
> Carlos Felipe
>