• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3307
  • Last Modified:

How do I setup Powershell to connect to a remote Exchange 2007 server?

We are running Exchange 2007 on Server 2008 Standard 64bit. I am a junior Administrator. I need to convert a number of mailboxes to .pst files and remove them from the server. I followed an article on using the Exchange Management Shell to export maildata. (Export-mailbox...) but when I tried running on our Exchange server it failed with a message that you needed a 32bit machine to export to a .pst.    I've installed the Exchange 2007 sp1 management tools on my XP SP3 32bit system, but have no idea how to connect to the Exchange Server using this tool. Anyone able to walk a NOVICE through the steps to do this?
0
adamant40
Asked:
adamant40
  • 3
  • 2
  • 2
  • +1
1 Solution
 
jacodaletCommented:
When using the Export-Mailbox cmdlet, you must specify a target mailbox and a target folder to which you want to copy or move the messages.

On the Exchange 2007 server, run the following command from the EMC
Export-Mailbox john.doe -JacoDalet MergeMailbox -TargetFolder 230209johndoeArchive

This will be exporting content from the mailbox "JacoDalet" into the mailbox for "MergeMailbox (MergeMailbox@yourdomain.com) inside folder '\230209johndoeArchive\Recovered Data - JacoDalet
Then answer Y
It will give you a report on the mailbox that was exported - it actually say that the mailbox was copied.
To remove the content after it was copied, you could use the -DeleteContent parameter in the command
0
 
blahphishCommented:
My mistake - I misread your request and posted something unrelated.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
adamant40Author Commented:
Jacodalet,
I need to export the mailbox into a .pst file. I used this example  Export-Mailbox -Identity jon@contoso.com -PSTFolderPath C:\PSTFiles\john.pst which would do exactly that. But it errors and states "You are running on a 64-bit computer. To Export to or Import from a .pst file, you must be running a 32-bit computer that has Outlook 2003 SP2 or later installed.
So I need to be able to connect my desktop install of PowerShell 1.0 to the Exchange server, which I have no idea how to do.  These mail accounts need to be archived and deleted, not imported into another Exchange server.

0
 
MesthaCommented:
You don't connect your 32 bit machine to the Exchange server at all.
If you have the Exchange management tools installed etc then you simply run the command on the 32 bit server. As long as the two machines are in the same forest, so the management tools are talking to the same Exchange org, you run the command in the same way. Exchange Management Shell will query the Org and extract the mailbox with the matching identity.

-M
0
 
adamant40Author Commented:
Thanks,
I was just logging in to close this. I had not installed the management tools correctly.
0
 
jacodaletCommented:
I run export-mailbox from my exchange 2007 server and works perfectly.
and export the data afterwords
0
 
adamant40Author Commented:
Jacodalet,
My Exchange server is on a 64bit OS. My entire purpose here is to get these mailboxes into a .pst and remove them from the mailstore. Using your method on a 64bit server will work, but it will be 3 or 4 steps to get it into a .pst.  Installing the tools on a 32bit OS and running the above command will do it in one step, and will even remove the mailbox data from the mailstore with an additional argument.
0

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

  • 3
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now