Configure client access server – configure Virtual Directories URL and permissions

Today we will configure Virtual Directories URL, autodiscover and etc.

So first we will configure autodiscover. Open Powershell and type command below:

Set-ClientAccessServer “tcas01” -AutodiscoverServiceInternalUri https://Autodiscover.tekbloq.com/Autodiscover/Autodiscover.xml

1virtualdirectk2013

if you have CAS server more than one type same command for that server too. For example, i have 2 CAS server:

Set-ClientAccessServer “tcas02” -AutodiscoverServiceInternalUri https://Autodiscover.tekbloq.com/Autodiscover/Autodiscover.xml

To see result  type command below:

Get-ClientAccessServer -Identity tcas01 | fl

2virtualdirectk2013

Other Virtual directories you can configure like as below:

Outlook anywhere:

Set-OutlookAnywhere -Identity “tcas01\Rpc (Default Web Site)” -InternalHostname mail.tekbloq.com -ExternalHostName mail.tekbloq.com -InternalClientAuthenticationMethod ntlm -InternalClientsRequireSsl:$True -ExternalClientAuthenticationMethod Basic -ExternalClientsRequireSsl:$True

Set-OutlookAnywhere -Identity “tcas02\Rpc (Default Web Site)” -InternalHostname mail.tekbloq.com -ExternalHostName mail.tekbloq.com -InternalClientAuthenticationMethod ntlm -InternalClientsRequireSsl:$True -ExternalClientAuthenticationMethod Basic -ExternalClientsRequireSsl:$True

Owa :

Get-OwaVirtualDirectory -Server “tcas01” | Set-OwaVirtualDirectory -InternalURL https://mail.tekbloq.com/owa -ExternalURL https://mail.tekbloq.com/owa

Get-OwaVirtualDirectory -Server “tcas02” | Set-OwaVirtualDirectory -InternalURL https://mail.tekbloq.com/owa -ExternalURL https://mail.tekbloq.com/owa

ECP:

Get-ecpVirtualDirectory -Server “tcas01” | Set-ecpVirtualDirectory -InternalURL https://mail.tekbloq.com/ecp -ExternalURL https://mail.tekbloq.com/ecp

Get-ecpVirtualDirectory -Server “tcas02” | Set-ecpVirtualDirectory -InternalURL https://mail.tekbloq.com/ecp -ExternalURL https://mail.tekbloq.com/ecp

ActiveSync:

Get-ActiveSyncVirtualDirectory -Server “tcas01” | Set-ActiveSyncVirtualDirectory -InternalURL https://mail.tekbloq.com/Microsoft-Server-ActiveSync -ExternalURL https://mail.tekbloq.com/Microsoft-Server-ActiveSync

Get-ActiveSyncVirtualDirectory -Server “tcas02” | Set-ActiveSyncVirtualDirectory -InternalURL https://mail.tekbloq.com/Microsoft-Server-ActiveSync -ExternalURL https://mail.tekbloq.com/Microsoft-Server-ActiveSync

EWS:

Get-WebservicesVirtualDirectory -Server “tcas01” | Set-WebservicesVirtualDirectory -InternalURL https://mail.tekbloq.com/EWS/Exchange.asmx -ExternalURL https://mail.tekbloq.com/EWS/Exchange.asmx

Get-WebservicesVirtualDirectory -Server “tcas02” | Set-WebservicesVirtualDirectory -InternalURL https://mail.tekbloq.com/EWS/Exchange.asmx -ExternalURL https://mail.tekbloq.com/EWS/Exchange.asmx

OAB:

Get-OABVirtualDirectory -Server “tcas01” | Set-OABVirtualDirectory -InternalUrl https://mail.tekbloq.com/OAB -ExternalURL https://mail.tekbloq.com/OAB

Get-OABVirtualDirectory -Server “tcas02” | Set-OABVirtualDirectory -InternalUrl https://mail.tekbloq.com/OAB -ExternalURL https://mail.tekbloq.com/OAB

3virtualdirectk2013

After that you need to restart IIS with the command below:

iisreset tcas01  

iisreset tcas02 

4virtualdirectk2013

You can type the following command to see the result of the configuration:

get-ClientAccessServer | fl *url*

get-owavirtualdirectory | fl *url*

get-ecpvirtualdirectory | fl *url*

get-ActiveSyncVirtualDirectory | fl *url*

get-webservicesvirtualdirectory | fl *url*

get-oabvirtualdirectory | fl *url*

That is All . The next article we will look  load balancer the traffic between the CAS servers.

 

Add Comment