Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Exchange 2k7 powershell truncates multi-value properties

91 views
Skip to first unread message

sneaky hamster

unread,
Nov 23, 2009, 3:24:31 PM11/23/09
to
Greetings,

I'm running the following command:

Get-SendConnector -Identity "Send Connector Name" | ft -autosize -wrap
-property AddressSpaces


We have over 20 domains in this list. When I run this command it lists
16 of these domains and then just sticks ... at the end.

If I leave out the -wrap switch the output lists only 3 domains.

How can I get this command to list ALL the contents of the AddressSpaces
property?

Thanks

Shay Levy [MVP]

unread,
Nov 23, 2009, 5:45:50 PM11/23/09
to
Try to pipe to format-list instead.


---
Shay Levy
Windows PowerShell MVP
http://blogs.microsoft.co.il/blogs/ScriptFanatic
PowerShell Toolbar: http://tinyurl.com/PSToolbar

sh> Greetings,
sh>
sh> I'm running the following command:
sh>
sh> Get-SendConnector -Identity "Send Connector Name" | ft -autosize
sh> -wrap -property AddressSpaces
sh>
sh> We have over 20 domains in this list. When I run this command it
sh> lists 16 of these domains and then just sticks ... at the end.
sh>
sh> If I leave out the -wrap switch the output lists only 3 domains.
sh>
sh> How can I get this command to list ALL the contents of the
sh> AddressSpaces property?
sh>
sh> Thanks
sh>


sneaky hamster

unread,
Nov 24, 2009, 11:29:31 AM11/24/09
to
Same result - I still get a truncated list. The command I used:

Get-SendConnector -Identity "Send Connector name" | fl -property
AddressSpaces

(I had to drop the wrap & autosize switches)

Rich Matheisen [MVP]

unread,
Nov 24, 2009, 10:00:28 PM11/24/09
to

On Tue, 24 Nov 2009 11:29:31 -0500, sneaky hamster
<sneaky....@not.really.mail> wrote:

>Same result - I still get a truncated list. The command I used:
>
>Get-SendConnector -Identity "Send Connector name" | fl -property
>AddressSpaces

If all you're after is the address spaces yu could try something like
this:

(Get-SendConnector "Send Connector
name").addressspaces|foreach{$t=$_.type;$a=$_.address;$c=$_.cost;"$t`t$a`t$c"}

The default Powershell formatter for arrays won't list all the values
if there are more than "X" number of them.
---
Rich Matheisen
MCSE+I, Exchange MVP

Shay Levy [MVP]

unread,
Nov 25, 2009, 4:47:41 AM11/25/09
to
Hi sneaky,

Doe's this do any good?

Get-SendConnector -Identity "Send Connector name" | Select-Object -expand
AddressSpaces

---
Shay Levy
Windows PowerShell MVP
http://blogs.microsoft.co.il/blogs/ScriptFanatic
PowerShell Toolbar: http://tinyurl.com/PSToolbar

sh> Same result - I still get a truncated list. The command I used:
sh>
sh> Get-SendConnector -Identity "Send Connector name" | fl -property
sh> AddressSpaces
sh>
sh> (I had to drop the wrap & autosize switches)
sh>
sh> Shay Levy [MVP] wrote:
sh>

Sergio Gonzalez

unread,
Mar 2, 2011, 4:55:39 AM3/2/11
to
Hi, sorry, my english is regular...

Try to set this before execute el Get-SendConnector

$formatenumerationlimit = 1000

This, switch the output max value to 1000.

Bye!

> On Monday, November 23, 2009 3:24 PM sneaky hamster wrote:

> Greetings,
>
> I am running the following command:


>> On Monday, November 23, 2009 6:25 PM Shay Levy [MVP] wrote:

>> Try to pipe to format-list instead.
>>
>>
>>
>>
>> ---
>> Shay Levy
>> Windows PowerShell MVP
>> http://blogs.microsoft.co.il/blogs/ScriptFanatic
>> PowerShell Toolbar: http://tinyurl.com/PSToolbar
>>
>>
>>
>> sh> Greetings,
>> sh>

>> sh> I am running the following command:
>> sh>
>> sh> Get-SendConnector -Identity "Send Connector Name" | ft -autosize


>> sh> -wrap -property AddressSpaces
>> sh>

>> sh> We have over 20 domains in this list. When I run this command it
>> sh> lists 16 of these domains and then just sticks ... at the end.
>> sh>
>> sh> If I leave out the -wrap switch the output lists only 3 domains.


>> sh>
>> sh> How can I get this command to list ALL the contents of the
>> sh> AddressSpaces property?
>> sh>
>> sh> Thanks
>> sh>


>>> On Tuesday, November 24, 2009 11:29 AM sneaky hamster wrote:

>>> Same result - I still get a truncated list. The command I used:
>>>

>>> Get-SendConnector -Identity "Send Connector name" | fl -property

>>> AddressSpaces


>>>
>>> (I had to drop the wrap & autosize switches)
>>>
>>>

>>> Shay Levy [MVP] wrote:


>>>> On Tuesday, November 24, 2009 10:00 PM Rich Matheisen [MVP] wrote:

>>>> If all you are after is the address spaces yu could try something like


>>>> this:
>>>>
>>>> (Get-SendConnector "Send Connector
>>>> name").addressspaces|foreach{$t=$_.type;$a=$_.address;$c=$_.cost;"$t`t$a`t$c"}
>>>>

>>>> The default Powershell formatter for arrays will not list all the values


>>>> if there are more than "X" number of them.
>>>> ---
>>>> Rich Matheisen
>>>> MCSE+I, Exchange MVP


>>>> Submitted via EggHeadCafe
>>>> Statistics, Probability, Lotteries and Dumb Programmers
>>>> http://www.eggheadcafe.com/tutorials/aspnet/041de19a-e704-468f-bd3c-79164fc739f5/statistics-probability-lotteries-and-dumb-programmers.aspx

0 new messages