exchange 2010 powershell 命令记录

  • Post author:
  • Post category:其他



Get-MailboxDatabase -Status | ft name,databasesize,availablenewmailboxspace  + -server 服务器 可指定查询特定的服务器




Get-MailboxStatistics -Identity “xxxx” | format-list




powershell建立AD账号对应的邮箱,并制定数据库

Enable-Mailbox -Identity AD账号名 -Database 数据库名

对应关闭使用disable-mailbox

对邮箱进行转发到指定邮箱里,使用下面命令,其中-DeliverToMailboxAndForward $true 意思是本地邮箱保留邮件,$false即本地不保留邮件

Set-Mailbox-Identity

x

xxx@xxx.com -DeliverToMailboxAndForward $true -ForwardingsmtpAddress

x

xx@xxx.cn