Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Exchange 2007 sp1 cmdlet

Posted on 2009-05-08
1
Medium Priority
?
776 Views
Last Modified: 2012-05-06
i use the below command to take backup from exchange management shell
Get-Mailbox  -Database 'mbx\BusinessSG1\example2' | Export-Mailbox -excludeFolders '\deleted items','\Junk E-mail' -pstfolderpath E:\Backup\BS2 -confirm:$false

this cmdlets saves the mailbox backup in form of AlaisName.pst.
But There are few conflicts in alias names as we have couple of domain configured on same
exchange server.

Question.
Is there a way i can fetch the User Principal Name from Get-mailbox cmdlet of all mailbox users and then pass it on to export-mailbox command and then it can save it in format      UPN.pst
0
Comment
Question by:Raman_Goswami
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 49

Accepted Solution

by:
Akhater earned 2000 total points
ID: 24347523
well that shouldn't be hard to do but you will have to do some tests


from the top of my head try this but it should be close


Get-Mailbox  -Database 'mbx\BusinessSG1\example2'| foreach { $PSTPath = "E:\Backup\BS2\" + $_.UserPrincipalName +".pst"; Export-Mailbox -excludeFolders '\deleted items','\Junk E-mail' -pstfolderpath $PSTPath -confirm:$false}

Open in new window

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
Are you an Exchange administrator employed with an organization? And, have you encountered a corrupt Exchange database due to which you are not able to open its EDB file. This article will explain all the steps to repair corrupt Exchange database.
In this video we show how to create a Shared Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Sha…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question