Export more than one mailbox to PST files
I know the command for exporting mailboxes to .pst files but I have 63 different mailboxes I need to export to individual .pst files. I have the list already created called users.txt. How do I pipe this command into the -exportmailbox -identity <user>
-pstfolderpath <path> command?
Thanks
April 27th, 2010 6:29pm
try:
get-content users.txt | %{ export-mailbox -identity $_ -pstfolderpath "c:\export\$_.pst" }
Free Windows Admin Tool Kit Click here and download it now
April 27th, 2010 6:57pm
that seems to have worked a treat!! Many thanks!!
April 27th, 2010 7:07pm
one more question actually, if i may.... how do you enter an auto-accept? for instance after the first mailbox completes it prompts at the next one. the typical /q /y, etc dont seem to work.
Free Windows Admin Tool Kit Click here and download it now
April 27th, 2010 7:14pm
one more question actually, if i may.... how do you enter an auto-accept? for instance after the first mailbox completes it prompts at the next one. the typical /q /y, etc dont seem to work.
is it asking for confirmation? if so try this:
get-content users.txt | %{ export-mailbox -identity $_ -pstfolderpath "c:\export\$_.pst" -confirm:$false }
April 27th, 2010 10:39pm