Exchange Management Shell common commands for Exchange

Source: Internet
Author: User

PS: Red is a variable in the following code and is changed according to its own environment

Get-mailbox-organizationalunit IT | New-moverequest-targetdatabase Jjr01 -baditemlimit 10000 #以OU为单位移动邮箱

get-mailbox-database | New-moverequest-targetdatabase jl04 10000 Span style= "font-family: ' blackbody ', simhei;font-size:12px;" >     #以数据库为单位移动邮箱

get-mailbox 321 | New-moverequest-targetdatabase jjr29 10000 Span style= "font-family: ' blackbody ', simhei;font-size:12px;" >   #以人为单位移动邮箱

get-content d:\userzy01.txt | New-moverequest-targetdatabase zy01 10000 Span style= "font-family: ' blackbody ', simhei;font-size:12px;" > #以TXT为模板移动邮箱

Get-mailbox 321 | Set-mailbox-customattribute10 ' since self #设置用户邮箱自定义属性

Get-mailbox 321 | Add-mailboxpermission-user domain\exchangeadmin -accessrights FullAccess #开启管理员完全访问权限

Get-moverequest | Get-moverequeststatistics #查看邮箱移动记录

get-moverequest-identity ' [email protected] ' | Get-moverequeststatistics #查看单人移动记录

Remove-moverequest-identity '[email protected]' #删除单人移动记录

Get-moverequest-movestatus completed-resultsize unlimited| Remove-moverequest #删除所有已完成的移动队列

Get-mailboxdatabasecopystatus-server mbx01 #检查数据库复制状态

Get-servercomponentstate-identity cas01 #检查前端访问服务器部件

Set-servercomponentstate-component acutodiscoverproxy -identity cas01 -requester healthapi-state Active #当前端访问服务器部件为inactive时, use this command to enable the part.

Get-receiveconnector "mbx01\client Proxy MBX01" | Set-receiveconnector-messageratelimit #设置每分钟邮件发送数限制

New-dynamicdistributiongroup-name ' Chinese display name '-includedrecipients ' mailboxusers '-organizationalunit ' domain/function '-alias ' alias ' #新建动态通讯组

New-mailboxdatabase-name "ZYPT04"-server 'mbx05'-edbfilepath E:\Mailbox\ZYPT01\ZYPT01.edb -logfolderpath E:\Mailbox\ZYPT01 #新建数据库

Get-mailbox-resultsize unlimited-organizationalunit ou name | Search-mailbox-searchquery " subject "-deletecontent #以OU为单位以主题为关键字, delete the message. The prerequisite user must have full access to the mailbox within the OU, which has the Open permission command.

$FTE = Get-dynamicdistributiongroup "Backup"

Get-recipient-recipientpreviewfilter $FTE. Recipientfilter #查询动态通讯组人员名单

Get-messagetrackinglog-server MBX01 -start "05/05/2015 09:00:00"-end " 06/05/2013 11:36:00 "-sender"[email protected]"#查看某台服务器上某段时间某人的发送邮件记录

Let's go here for a moment, and add more commands later.






This article is from "Rookie DQ" blog, please be sure to keep this source http://cainiaodq.blog.51cto.com/2192425/1730004

Exchange Management Shell common commands for Exchange

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.