Re: [PS] Ignoring host formatting
- From: "Yuksel Akinci [MSFT]" <yuksela@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 19 May 2006 02:03:17 -0700
PS> $oldSize=$temp=$host.ui.rawui.buffersize;$temp.width=9999;
$host.ui.rawui.buffersize=$temp; ps |ft * -auto
file.txt;$host.ui.rawui.buffersize=$oldsize;
"Dave" <dave.brannan@xxxxxxxxxxxxxxxx> wrote in message
news:%23ClznuueGHA.1208@xxxxxxxxxxxxxxxxxxxxxxx
If I want to get all the information from a command in a nice format
regardless of the number of columns available, how can I do it?
For example if I do:
[PS] gps | ft *
All the information columns get trucated into extremely small columns. So
if I do:
[PS] gps | ft * -auto
Does what I want except it tells me xx amount of columns were removed.
Fair enough, so I then want to output this to a file and not have PS worry
about truncating columns in the host, except using:
[PS] gps | ft * -auto > File.txt
Produces the same output and the extra columns are removed.
Is there an easy way to export all the information available from a
cmdlet/pipeline into single rows?
Thanks,
Dave.
.
- References:
- [PS] Ignoring host formatting
- From: Dave
- [PS] Ignoring host formatting
- Prev by Date: Re: [PS] Ignoring host formatting
- Next by Date: Re: microsoft.public.windows.powershell newsgroup is up!!!
- Previous by thread: [PS] Ignoring host formatting
- Next by thread: Re: [PS] Ignoring host formatting
- Index(es):
Loading