#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%[email protected]-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命令控制台, First enter "Get-popsettings | FL "To see if the Externalconnetionsetting field is set to complete.
#设置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
#如果勿删除自签名证书后, certificate recovery:
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 "Recipient Mailbox" –
Sender "Sender Mailbox" | 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 "Recipient Mailbox" –
Sender "Sender Mailbox" | FT Eventid,sender,recipients,timestamp,recipientcount | Measure-object
Cond..... Keep adding in ...
Zabbix_agent Boot:
C:\zabbix\bin\win64\zabbix_agentd.exe-c C:\zabbix\conf\zabbix_agentd.win.conf-s
This article is from the "Elephant" blog, make sure to keep this source http://zlyang.blog.51cto.com/1196234/1754794
Exchange 2010 Practical Tips