TechShizz | All posts tagged 'Exchange 2010'

Edge Server Address Rewriting

Address rewriting on an Edge Transport server requires that address rewriting agents

be enabled. To enable the inbound and outbound transport agents, run the following EMS


Enable-TransportAgent –Identity "Address Rewriting Inbound agent"

Enable-TransportAgent –Identity "Address Rewriting Outbound agent"

Auto discover & Active Sync



The Autodiscover service provides clients running Outlook 2007, Outlook 2010, and mobile

phones running Windows Mobile 6.1 or later with user profile configuration settings. To

use Autodiscover, it is necessary to either provide the user’s email address and password or

have the user’s domain credentials.


You can use the Test-OutLookWebServices cmdlet from the EMS to verify that the


service settings are working properly


Test-OutlookWebServices –ClientAccessServer CAS01


Active Sync


ActiveSync allows users to sync their Windows Mobile devices with their Exchange mailboxes.

ActiveSync is optimized to work across high-latency, low-bandwidth networks, such as those

likely to be encountered across a mobile phone data connection. Exchange ActiveSync is

enabled automatically when you install the Client Access server role.


Can be configured from Server Configuration\Client Access > selecting Exchange ActiveSync on the lower-middle page, right-clicking on the Client Access server that you want to modify, and then clicking on Properties.

Active Sync


Internal URL - The URL that ActiveSync devices on the internal network use to access the Client Access server.

External URL  - The URL that ActiveSync devices on the Internet use to access the Client Access server.



On the Authentication tab, in a production environment the following should be selected if the devices have been provisioned with certificates. If they have not this will prevent all devices from connecting.

Authentication Tab



You can test ActiveSync connections with the following EMS cmdlet:


Test-ActiveSyncConnectivity –ClientAccessServer CAS01 –URL -MailboxCredential "Kim_Akers"



ActiveSync device policies


  • To create a policy go to Organization Configuration\Client Access node
  • In the Actions pane, click on New Exchange ActiveSync Mailbox Policy



Allow nonprovisionable devices: Allow devices that do not support all policies to sync with Exchange.

ActiveSync device policies


Once the policy is created you can edit the policy using the Set-ActiveSyncMailboxPolicy cmdlet.



Outlook Anywhere (RPC over HTTP)

On the Server Configuration > Client Access node, you can right click on the Exchange server and Enable to Outlook Anywhere feature.

Enable Outlook Anywhere


You must then enter the external URL that will be able to access the exchange server. 


External Host name - Outlook Anywhere


This can be enabled in EMS:

Enable-OutlookAnywhere –Server 'CAS1' –ExternalHostname '' –DefaultAuthenticationMethod 'NTLM'


Configuring RPC Client Access


In Outlook > File > Account Settings > Account Settings > Select account > Change > More > Advanced > HTTP Proxy Settings 


The settings here should match what was setup in the enabling Outlook Anywhere feature.

The settings should pull through automatically anyway.

Microsoft Exchange Proxy Settings


Create an Edge Subscription

  1. Ensure DNS resolution between the Hub > Edge and Edge >Hub.
  2. On the Edge server run: New-EdgeSubscription -FileName "C:\Edge.xml"
  3. Transfer the file created to the Hub Transport server
  4. On the Hub t, Go to Organization Config > Hub Transport > Edge Subscriptions(tab) > New Edge Subscription.
  5. Specify the location of the file transferred in step 3.
  6. Click new to create the subscription and click finish. 

Get X500 addresses

To get X500 addresses from users in a domain:


Get-ADUser -SearchBase "OU=SBSUsers,OU=Users,OU=MyBusiness,dc=Mydomain,dc=local" -Filter * -Properties SamAccountName,legacyExchangeDN | Select-Object SamAccountName,legacyExchangeDN | Export-CSV C:\UserExport.csv -NoTypeInformation