Solved

Exchange 2007 Export-Mailbox problem

Posted on 2011-03-15
3
461 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
Utilizing an array to gracefully append to a list of EmailAddresses
In this video we show how to create an email address policy 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 Mail Flow…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

738 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