#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
原文地址:http://zlyang.blog.51cto.com/1196234/1754794