Export Send Connector Address Space

I have an Exchange 2007 organization and have a need to export the domains listed in a Send Connector out to a file.
When I tried to do this, they are listed with the '...' just as in the powershell.

I know this can probably be exported out of AD as well, but I am having difficutly in getting it accopmlished.
Who is Participating?
Tony JConnect With a Mentor Lead Technical ArchitectCommented:
Sorry - think I'm giving part of a script there and I'm not in front of an Exchange system to test.

Try just this for now:

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

Tony JLead Technical ArchitectCommented:
What command are you running?
thornmnAuthor Commented:
[PS] C:\Windows\system32>Get-SendConnector -id "send_connector_name" | export-csv c:\o
I have used variations of this command.  Using the above command provides the following output in the AddressSpaces column:  

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Tony JConnect With a Mentor Lead Technical ArchitectCommented:
Ok - what happens if you just run the following:

Get-SendConnector | Select Name, @{Name=AddressSpaces;Expression={[string]::join(";", ($_.AddressSpaces))}}| Export-CSV c:\output.csv

Also - you're running the management shell as an administrator, yet?
thornmnAuthor Commented:
No dice:
The term 'AddressSpaces' is not recognized as the name of a cmdlet, function, s
cript file, or operable program. Check the spelling of the name, or if a path w
as included, verify that the path is correct and try again.
At line:1 char:74
+ Get-SendConnector -id "US_to_UK_Send" | Select Name, @{Name=AddressSpaces <<<
< ;Expression={[string]::join(";", ($_.AddressSpaces))}}| Export-CSV c:\output.
    + CategoryInfo          : ObjectNotFound: (AddressSpaces:String) [], Comma
    + FullyQualifiedErrorId : CommandNotFoundException
thornmnAuthor Commented:
Format-Table : A positional parameter cannot be found that accepts argument 'Ad
At line:1 char:49
+ Get-SendConnector -Identity "US_to_UK_Send" | ft <<<<  -autosize -wrap proper
ty AddressSpaces
    + CategoryInfo          : InvalidArgument: (:) [Format-Table], ParameterBi
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell
thornmnAuthor Commented:
I ran this command (added a dash in front of Property) and received the on-screen output w/out error.

Get-SendConnector -Identity "US_to_UK_Send" | ft -autosize -wrap -property AddressSpaces

It did truncate after 5 lines...
thornmnConnect With a Mentor Author Commented:
Ok, here is what I did to solve this:
Followed this article to prevent the truncation of the lines:
COMMAND:  [PS] C:\>$FormatEnumerationLimit =-1
Ran this command:
[PS] C:\Windows\system32>Get-SendConnector -Identity "connector_name" | ft -autosize -wrap -property AddressSpaces |out-file c:\output.txt

Thanks Tony1044 for getting me on the right path!

thornmnAuthor Commented:
Tony JLead Technical ArchitectCommented:
Sorry I couldn't respond sooner - I was on the road. Glad you resolved the truncation. Never been sure why MS choose to do it by default.

Glad you got the result you wanted and thank you for the points request.
thornmnAuthor Commented:
Additional command found based upon initial comments from Tony1044
Tony JLead Technical ArchitectCommented:
Thank you for the points. Glad I helped in some small way and you resolved it.

Good luck.
old post - but had to post a cleaner way
$Sendcon= get-sendconnector <name>
$Sendcon.addressspaces | select domain | Export-CSV c:\output.csv
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.