header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
How to connect to Exchange server powershell, from a C sharp client application?
Last Post 11 Jun 2010 10:45 AM by Presence. 2 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Not Resolved
farsenUser is Offline
New Member
New Member
Posts:3
Avatar

--
01 Jun 2010 12:05 AM
    Hi.

    I´ve been looking for hours now, but cant seem to find concrete information on this subject.

    I am using Exchange Web Services (EWS) to connect and manage my Exchange 2007 server. The only thing i need right now, is a list of all e-mail adresses/users on the Exchange server. This is not possible with EWS. So it seems like I should use Powershell.

    But how do i execute commands on the exchange server, which returns the results to my client machine over a network?

    Really hope you can help! Thanks alot :)

    Kind regards,
    Lars
    PresenceUser is Offline
    New Member
    New Member
    Posts:94
    Avatar

    --
    11 Jun 2010 10:41 AM
    if you install the Exchange Management tools on your local client, so long as you are in the same domain as your exchange servers...

    you should be able to open the Exchange Management Shell (EMS) and run a simple command

    Get-mailbox -resultsize unlimited | select name, emailaddresses |export-csv C:\exchangedump.csv

    Link for download of EMT:
    http://www.microsoft.com/downloads/...laylang=en
    Link for instructions on how to install tools:
    http://support.microsoft.com/kb/555841
    PresenceUser is Offline
    New Member
    New Member
    Posts:94
    Avatar

    --
    11 Jun 2010 10:45 AM
    another option is if you can run EMS straight from the exchange server while RDP'd in, you can direct output of things like export-csv to your local machine, provided you have a share setup...

    example

    somecode | export-csv \\computername\share\stuff.csv
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer