Exchange 2007 Export-Mailbox

SEHC
SEHC used Ask the Experts™
on
Hi

I am using the following script below and it Keeps asking me to Agree to the Export what syntax do I add on the end to say Yes to all?



$a=(import-csv "C:\Scripts\Export.CSV")
Foreach($b in $a){
      $user=$b.user
      $Group=$b.Group
      Export-Mailbox –Identity $user -PSTFolderPath $Group
      
}
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Windows Administrator
Commented:
-Confirm:$false

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial