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

Exchange 2k7 powershell truncates multi-value properties

13 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>

0 new messages