Windows 2008 R2 + Exchange 2010

ServerManagerCmd -ip D:\Scripts\Exchange-Typical.xml -Restart
Set-Service NetTcpPortSharing -StartupType Automatic
http://go.microsoft.com/fwlink/?LinkID=191548

https://technet.microsoft.com/en-us/library/bb691354%28EXCHG.140%29.aspx
https://technet.microsoft.com/zh-cn/library/bb691354%28v=exchg.141%29.aspx

get-user -filter "department" -eq 'sales'"
get-user -filter "department" -like 'sales*'"
get-mailbox administrator | fl name,emailaddresses
get-casmailbox

Set on behalf of and send as permission:
set-mailbox boss -grantsendonbehalfto assistant
add-adpermission boss -extendedrights send-as -user assistant
restart-server msexchangeis

Show the user forwarding status:
get-mailbox Username | fl name,forwardingaddress,delivertomailboxandforward,recipientlimits

Show each user send receive limit:
get-mailbox | ft name,maxsendsize,maxreceivesize

Global message size limit:
get-transportconfig | fl max*size,maxrecipientenvelopelimit

Add retention deleted items:
new-retentionpolicytag "tag-deleteditems" -type "deleteditems" -comment "deleted items are purged in 60 days" -retentionenabled $true -agelimitforretention 60 -retentionaction permanentlydelete

Add retention default policy:
new-retentionpolicytag "tag-default" -type all -comment "items without a retention tag are deleted in 1 year." -retentionenabled $true -agelimitforretention 365 -retentionaction movetodeleteditems -isprimary $true

Add retention business policy:
new-retentionpolicytag "tag-businesscritical" -type personal -comment "business critical messages are moved to the archive in 3 years." -retentionenabled $true -agelimitforretention 1095 -retentionaction movetoarchive

Add retention group:
new-retentionpolicy "RP1" -retentionpolicytaglinks "tag-deleteditems","tag-businesscritical","tag-default"

Apply to user:
set-mailbox username -retentionpolicy RP1 -confirm:$false

restart-server msexchangeis
start-managedfolderassistant

Remove retention:
set-mailbox username -retentionpolicy $null
remove-retentionpolicy RP1
get-retentionpolicytag | remove-retentionpolicytag

Grant fullright access from user1 to user2:
add-mailboxpermission user1 -accessrights fullaccess -user user2

Display all edb path
get-mailboxdatabase | fl name,edbfilepath

Show state(Clean or Drily):
eseutil /mh

Repair with transaction log:
eseutil /r E05

eseutil /p

Integrity:
eseutil /g

Checksum:
eseutil /k

Fragment:
eseutil /ms

Defragment:
eseutil /d

發佈留言

*