Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Exchange 2016 bulk export and import pst

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

The command for Exchange to export pst is Get-MailboxExportRequest

The command for Exchange to import pst is Get-MailboxImportRequest

Prepared 2018.1.22mailpst.txt file with the file name containing the email address to be exported

MailboxAliastest001@pwrd.comtest002@pwrd.comtest003@pwrd.com....

Powershell script

$mail = Import-Csv-Path "F:\ scripts\ 2018.1.22mailpst.txt" # Loop pstForeach from the CSV file ($user in $mail) {$Alias = $user.MailboxAliasNew-MailboxExportRequest-Mailbox $Alias-ContentFilter {Received-gt "1pm 2018"}-IncludeFolders "sent mail"-FilePath\ 10.12.0.102\ pst\ pst2018.3.5\ $($user.MailboxAlias) .pst}

Import pst and replace it with Get-MailboxImportRequest

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report