ORF反垃圾邮件系统

邮件服务器-邮件系统-邮件技术论坛(BBS)

 找回密码
 会员注册
查看: 2747|回复: 2
打印 上一主题 下一主题

[求助] 小弟跪求exchange在CMD下导出为PST的方法,感激不尽!

[复制链接]
跳转到指定楼层
顶楼
发表于 2012-6-13 00:53:30 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
如题,小弟想在cmd下用什么命令或者是什么脚本来导出exchange服务器上的用户数据为pst,听说exchange 2007之前用的是命令,之后有个powershare脚本来导出,跪求方法与脚本!
沙发
发表于 2012-6-13 17:35:22 | 只看该作者
To use the Exchange Management Shell to export mailbox data in Exchange 2007 SP1
--------------------------------------------------------------------------------

To export the special folders and empty folders of the mailbox to a folder in the destination mailbox, run the following command:


Copy
Export-Mailbox -Identity <MailboxIdParameter> -TargetMailbox <MailboxIdParameter> -TargetFolder <Folder_Name>

To export data to a .pst file, run the following command:


Copy
Export-Mailbox -Identity <MailboxIdParameter> -PSTFolderPath <Path_Of_PST_Folder>\<File_Name>.pst

To export data from a group of mailboxes, such as all mailboxes for which the user title begins with "VP," run the following command:


Copy
Get-User | where { $_.Title -ilike "VP*" } | Export-Mailbox -TargetFolder <Folder_Name> -TargetMailbox <MailboxIdParameter>

To export data that was received between specific dates to a .pst file, run the following command:


Copy
Export-Mailbox -Identity <MailboxIdParameter> -StartDate "<Month/Day/Year>" -EndDate "<Month/Day/Year>" -PSTFolderPath <Path_Of_PST_Folder>\<File_Name>.pst

To export only data from the Sent Items folder, run the following command:


Copy
Export-Mailbox -Identity <MailboxIdParameter> -IncludeFolders '\Sent Items' -TargetFolder <Target_Folder_Name> -TargetMailbox <MailboxIdParameter>

To exclude folders from the export, such as excluding items in the Junk E-Mail and Contacts folders, run the following command:


Copy
Export-Mailbox -TargetMailbox <MailboxIdParameter> -TargetFolder <Target_Folder_Name> -ExcludeFolders "\Junk E-Mail","\Contacts"

To use filters to specify which items in the source mailbox to include in the export, run the following command:


Copy
Export-Mailbox -Identity <MailboxIdParameter> -TargetMailbox <MailboxIdParameter> -TargetFolder <Target_Folder_Name> -ContentKeywords "<String[]>" -AttachmentFilenames "<String[]>" -StartDate "<Month/Day/Year> <Time>" -RecipientKeywords <String[]>

To find and delete items from a group of mailboxes, such as all mailboxes on a database, run the following command:


Copy
Get-Mailbox -Database DB1 | Export-Mailbox -TargetMailbox ExportMailbox -TargetFolder VirusData -SubjectKeywords "Virus message" -DeleteContent

This example first gets all the mailboxes on database DB1 and then searches for items that contain the string "Virus message" in the subject line. It will export the items to the mailbox ExportMailbox and will delete those items from the source mailbox.

To find and delete items from a group of mailboxes, such as all mailboxes on a database, without exporting the items to another mailbox, run the following command:


Copy
Get-Mailbox -Database DB1 | Export-Mailbox -SubjectKeywords "Virus message" -DeleteContent

This example first gets all the mailboxes on database DB1, searches for items that contain the string "Virus message" in the subject, and deletes those items.

To export data from all the mailboxes of users in the Marketing organizational unit, run the following command:


Copy
Get-Mailbox -OrganizationalUnit Marketing | Export-Mailbox -PSTFolderPath C:\PSTFiles

This example exports the data from each mailbox to a separate .pst file located at C:\PSTFiles. The name of each .pst file will be <alias>.pst.

For detailed syntax and parameter information, see the Export-Mailbox reference topic.

点评

万分感谢,回头测试一下,如还有问题屌丝还提问啊  详情 回复 发表于 2012-6-15 06:37
藤椅
 楼主| 发表于 2012-6-15 06:37:24 | 只看该作者
fz500 发表于 2012-6-13 17:35
To use the Exchange Management Shell to export mailbox data in Exchange 2007 SP1
------------------ ...

万分感谢,回头测试一下,如还有问题屌丝还提问啊
您需要登录后才可以回帖 登录 | 会员注册

本版积分规则

小黑屋|手机版|Archiver|邮件技术资讯网

GMT+8, 2024-5-16 22:40

Powered by Discuz! X3.2

© 2001-2016 Comsenz Inc.

本论坛为非盈利中立机构,所有言论属发表者个人意见,不代表本论坛立场。内容所涉及版权和法律相关事宜请参考各自所有者的条款。
如认定侵犯了您权利,请联系我们。本论坛原创内容请联系后再行转载并务必保留我站信息。此声明修改不另行通知,保留最终解释权。
*本论坛会员专属QQ群:邮件技术资讯网会员QQ群
*本论坛会员备用QQ群:邮件技术资讯网备用群

快速回复 返回顶部 返回列表