码迷,mamicode.com
首页 > 其他好文 > 详细

Exchange 2010 实用小技巧

时间:2016-03-24 16:38:38      阅读:187      评论:0      收藏:0      [点我收藏+]

标签:加密   防火墙   小技巧   display   控制台   



#Exchange安装必须开启防火墙服务



#批量建用户:


for /f  "tokens=1,2,3,4,5,6,7 delims=," %a in (c:\users.csv) do dsadd user "cn=%b,ou=%g,dc=xxxx,dc=com,dc=cn"  -


samid %c -upn %c@xxxx.com.cn -ln %a -pwd %d -display %e -desc %f -disabled no >> c:\secess.log

@pause>nul


#批量改附件大小

get-user | set-mailbox -MaxSendSize “100MB”

get-user | set-mailbox -MaxReceiveSize “100MB”


#打开EMS命令控制台,首先输入“Get-PopSettings | FL”来查看ExternalConnetionSetting 字段是否设置完成。


#设置Web端Pop和Imap加密


Set-PopSettings -ExternalConnectionSettings "mail.xxxx.com:995:tls"

Set-IMAPSettings -ExternalConnectionSettings "mail.xxxx.com:993:tls"



#设置Web端Smtp加密


Set-ReceiveConnector -Identity "Client Servername" -AdvertiseClientSettings:$true


#如果勿删除自签名证书后,证书恢复:


NEW-ExchangeCertificate


#查看所有用户邮箱使用空间:


Get-MailboxStatistics -Database "Mailbox Database 0242617141" |ft displayname,itemcount,totalitemsize,lastlogontime > c:


\size.txt



#查询某个时间段某邮箱的发送记录:


Get-MessageTrackingLog -ResultSize Unlimited -Start "3/24/2016 2:30AM" -End "3/24/2016 2:50PM" -Recipients "接收者邮箱" –


Sender "发送者邮箱" | ft EventId,Sender,Recipients,Timestamp,RecipientCount


#计数参数: | Measure-Object

Get-MessageTrackingLog -ResultSize Unlimited -Start "3/24/2016 2:30AM" -End "3/24/2016 2:50PM" -Recipients "接收者邮箱" –


Sender "发送者邮箱" | ft EventId,Sender,Recipients,Timestamp,RecipientCount | Measure-Object


待续.....不断添加中......


Zabbix_agent 启动:

C:\zabbix\bin\win64\zabbix_agentd.exe -c C:\zabbix\conf\zabbix_agentd.win.conf -s


本文出自 “Elephant” 博客,请务必保留此出处http://zlyang.blog.51cto.com/1196234/1754794

Exchange 2010 实用小技巧

标签:加密   防火墙   小技巧   display   控制台   

原文地址:http://zlyang.blog.51cto.com/1196234/1754794

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!