Link to home
Start Free TrialLog in
Avatar of SEHC
SEHCFlag for Canada

asked on

Exchange 2007 Export-Mailbox

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
      
}
ASKER CERTIFIED SOLUTION
Avatar of Jeff Perry
Jeff Perry
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial