Showing posts with label Exchange 2010. Show all posts
Showing posts with label Exchange 2010. Show all posts

Wednesday, August 28, 2013

How to manually push update if Global Address Book Exchange 2010 Taking time to update new user


  1. Get-GlobalAddressList | Update-GlobalAddressList
  2. Get-OfflineAddressBook | Update-OfflineAddressBook
  3. Get-ClientAccessServer | Update-FileDistributionService
  4. Download Full OAB in outlook
  5. On the Tools menu, point to Send/Receive, and then click Download Address Book.
  6. In the Offline Address Book dialog box, make sure that the Download changes since last Send/Receive check box is checked.
  7. Click OK.

Tuesday, August 13, 2013

Controll Exchange 2010 mail delivery using cost and hub site

Set-ADSiteLink, this command would be very useful in cases where one wants to favor one site  for queuing  over another. The lower the cost more likely site will be used. Keep in mind that direct delivery is always attempted first and only if it fails site cost is used to queue messages in a different hub server in different site.

Set-ADSiteLink -Identity fromtositelink -ExchangeCost 5

Set-AdSite is a command that is used to enable particular hub in site to force all email to pass through it.

ENABLE:
Set-AdSite -Identity 'sitename' -HubSiteEnabled $true

DISABLE:
Set-AdSite -Identity 'sitename' -HubSiteEnabled $false

Modifying exchange 2010 receive connector using EMS

To modify existing receive connector by adding banner message and increasing size of messages allowed Set-ReceiveConnector command is used

Set-ReceiveConnector -Name 'Name of existing receive connector' -Banner '220 Custom application connector' -MaxMessageSize '20MB'

Creating exchange 2010 receive connector using EMS

Following command creates a connector to accept messages only from internal application server with IP 192.168.1.100

New-ReceiveConnector -Name 'New Receive Connector Name' -Usage Custom - bindings 0.0.0.0:25 -RemoteIPRanges '192.168.1.100' -Server 'Server Name' -AuthMechanism 'None'

Modifying exchange 2010 send connector using EMS


This command would enable protocol logging and increase message size to 20MB.


Set-SendConnector -Name 'Name of the connector' -ProtocolLoggingLevel 'Verbose' -MaxMessageSize '20MB'

Thursday, February 28, 2013

Exchange DAG replication using secondary NIC betwene servers on different subnets

Recently I ran into a problem with Exchange 2010 DAG configuration. I needed to replicate databases between servers that were geographically in different sites and were each on their own separate subnets. For this purpose I wanted to use our secondary data line in order to avoid overloading our main production line with replication traffic. DAG was all set and replicating fine over production line but when I disabled replication on main NIC's and enabled it on secondary NIC's routed via secondary data line, Exchange was still pushing replication via primary NIC. Issue resolved after I collapsed DAG network on secondary ISP into a single DAG network adding both near and far subnet into it. Great article that talks just about that particular setup you can find right here: http://blogs.technet.com/b/timmcmic/archive/2011/09/26/exchange-2010-collapsing-dag-networks.aspx

Tuesday, February 5, 2013

Some usefull powershell commands for fixing content index state when failed

Set content index state of particular database in PS:
Set-MailboxDatabase -identity -indexenabled $true

List databases with content index in failed state:
Get-MailboxDatabaseCopyStatus -Server   | ? {$_.contentindexstate -eq "failed"}

Reset search index for particular database ( need to be in script directory - C:\Program Files\Microsoft\Exchange Server\Scripts):
.\ResetSearchIndex.ps1 -force

Update replication of catalog only on database:
Update-MailboxDatabaseCopy -identity \ -CatalogOnly

Update catalog index state only on all failed databases:
Get-MailboxDatabaseCopyStatus -Server em-bk-exmb01  | ? {$_.contentindexstate -eq "failed"} | update-mailboxdatabasecopy -catalogonly

Friday, April 27, 2012

Whitelist in Exchange 2010

Pwershell commands for whitelisting in exchange 2010:
Check what is currently whitelisted -
Get-ContentFilterConfig
Whitelist a single email address -
$list = (Get-ContentFilterConfig).BypassedSenders
$list.add("new.mail@address.com")
Set-ContentFilterConfig -BypassedSenders $list
Whitelist entire domain -
$list = (Get-ContentFilterConfig).BypassedSenderDomains
$list.add("domain.com")
Set-ContentFilterConfig -BypassedSenderDomains $list