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
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>
Get-SendConnector -Identity "Send Connector name" | fl -property
AddressSpaces
(I had to drop the wrap & autosize switches)
>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
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>
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