Link to home
Start Free TrialLog in
Avatar of AnthonyJK
AnthonyJK

asked on

Exchange 2007 WebServices Commands

I am installing our exchange 2007 server and got the point where i researched different websites and found a bunch of different commands that i have no idea which ones i need. Some look the same but with different authentication at the end of them.

I need to enable all the services including Autodiscover except for the Unified Messaging. We dont use that. Also i have read that people use the External Address for the Internal URL. The External address doesnt work on our Internal LAN though. Can i just use what the internal and external URLs are supposed to be?

Set-WebServicesVirtualDirectory -identity "Den2k8Exch1\EWS (Default Web Site)" -internalurl https://Den2k8Exch1.hcl.local/EWS/Exchange.asmx -WindowsAuthentication:$True

Set-WebServicesVirtualDirectory -identity "Den2k8Exch1\EWS (Default Web Site)" -externalurl https://mail.example.com/EWS/Exchange.asmx -WindowsAuthentication:$True

Get-ClientAccessServer | Set-ClientAccessServer -AutodiscoverServiceInternalUri https://Den2k8Exch1.hcl.local/autodiscover/autodiscover.xml

Set-WebServicesVirtualDirectory Identity  "Den2k8Exch1\EWS (Default Web Site)" -InternalUrl https://Den2k8Exch1.hcl.local/ews/exchange.asmx

Set-OABVirtualDirectory -Identity "Den2k8Exch1\oab (Default Web Site)" -InternalUrl https://mail.example.com/oab

Get-ClientAccessServer | Set-ClientAccessServer  -AutodiscoverServiceInternalUri https://Den2k8Exch1.hcl.local/autodiscover/autodiscover.xml

Enable-OutlookAnywhere -Server Den2k8Exch1 -ExternalHostname "mail.example.com" -ExternalAuthenticationMethod "Basic" -SSLOffloading:$False

Set-OABVirtualDirectory -identity "Den2k8Exch1\OAB (Default Web Site)" -externalurl https://mail.example.com/OAB -RequireSSL:$true

Set-WebServicesVirtualDirectory -identity "Den2k8Exch1\EWS (Default Web Site)" -externalurl https://mail.example.com/EWS/Exchange.asmx -BasicAuthentication:$True
Avatar of ikshf143
ikshf143
Flag of India image

You would only need the URLS for Autodiscover, OAB, EWS, if you have Unified messaging role installed then the UMVirtualDirectory and the Enable Outlook Anywhere commands. Also all authentications should be WindowsAuthentication for all the Virtual Directories expect for Outlook Anywhere.
Outlook Anywhere should be basic
You can use the Internal and External URLs as they are but for that you need to have a SAN(UCC) certificate with Multiple names. That would include your External URL, INternal URL and the Autodiscover URL which would look something like this autodiscover.domain.com
Avatar of AnthonyJK
AnthonyJK

ASKER

Thats that helps a little but out of the ones i listed which ones do i need and is there anymore that i would need. Can you copy and paste the ones to run? Confusing...Thanks again.
Also i do have my UCC Cert and is working good.
UCC Cert:
mail.example.com
autodiscover.example.com
Den2k8Exch1.hcl.local
Den2k8Exch1
ASKER CERTIFIED SOLUTION
Avatar of ikshf143
ikshf143
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Awesome thanks for your help.
Shoot i guess i should have tried these first..The last 2 fail when i run them...Do i need to reopen another ticket?


[PS] C:\Users\administrator.HCL\Desktop>Set-ClientAccessServer -Identity Den2k8E
xch1 -AutodiscoverServiceInternalUri https://Den2k8Exch1.hcl.local/autodiscover/
autodiscover.xml -WindowsAuthentication:$True
Set-ClientAccessServer : A parameter cannot be found that matches parameter nam
e 'WindowsAuthentication'.
At line:1 char:161
+ Set-ClientAccessServer -Identity Den2k8Exch1 -AutodiscoverServiceInternalUri
https://Den2k8Exch1.hcl.local/autodiscover/autodiscover.xml -WindowsAuthenticat
ion:$ <<<< True
[PS] C:\Users\administrator.HCL\Desktop>Set-OABVirtualDirectory -Identity "Den2k
8Exch1\oab (Default Web Site)" -internalurl https://Den2k8Exch1.hcl.local/oab -e
xternalurl https://autodiscover.example.com/oab -WindowsAuthenticati
on:$True
Set-OabVirtualDirectory : A parameter cannot be found that matches parameter na
me 'WindowsAuthentication'.
At line:1 char:204
+ Set-OABVirtualDirectory -Identity "Den2k8Exch1\oab (Default Web Site)" -inter
nalurl https://Den2k8Exch1.hcl.local/oab -externalurl https://autodiscover.example.com/oab -WindowsAuthentication:$ <<<< True
[PS] C:\Users\administrator.HCL\Desktop>
Run the same commands without the -WindowsAuthentication parameter and that would also work just fine as the default authentication on these directories is Windows Authentication unless you have changed it manually to something else. You can verify the authentication using IIS manager-->WebSites-->Default Web Site-->VirtualDirectory-->Authentication(on the right hand side pane)
In the AutoDiscover Directory Basic & WindowsAuthentication are both enabled.

On the Oab Directory the WindowsAuthentication is the only one enabled.

Havent changed a thing. I just ran them without the WindowsAuthentication and didnt get any errors this time so should be good. Anyway to check now?

Thanks again.
That is fine. If you have a Outlook 2007 Client internal to the domain, connect Ouotlook and then run the Test Email autoconfig(press CTRL+Right Mouse Click on the Outlook Icon found in System tray while Outlook is running). Keyin your credentials and uncheck options "Use GuessSmart" and "Secure Guess Smart" and run the test. This would be the same way to test it externally as well