Solved

Exchange 2007 Export-Mailbox problem

Posted on 2011-03-15
3
442 Views
Last Modified: 2012-05-11
I am running the following command to dump all mailboxes to pst

Get-Mailbox | Export-Mailbox -PSTFolderPath e:\current

The problem i have is it prompts to push "A" for all, is there a way to pass this is a scipt so i can automate it.

I have tried adding /A and |A  but neither works.
0
Comment
Question by:nhidalgo
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
GundogTrainer earned 500 total points
ID: 35137220
Not at a powershell console to test but I think you can set the system variable to not nprompt by:
$ConfirmPreference = 'None'

0
 
LVL 6

Author Closing Comment

by:nhidalgo
ID: 35137273
That did the trick, thanks very much.
0
 
LVL 8

Expert Comment

by:GundogTrainer
ID: 35137481
Great.
Just wanted to add that the default is 'High' and you may want to set it back to at the end of your script to stop you doing something "bad" accidentally.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
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…
In this video we show how to create a Contact 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 >> Contact ta…
how to add IIS SMTP to handle application/Scanner relays into office 365.

770 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