Solved

Exchange 2007 Export-Mailbox problem

Posted on 2011-03-15
3
456 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
[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
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
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…
This video discusses moving either the default database or any database to a new volume.

749 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