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-WebServicesVirtualDire ctory -identity "Den2k8Exch1\EWS (Default Web Site)" -internalurl https://Den2k8Exch1.hcl.local/EWS/Exchange.asmx -WindowsAuthentication:$Tr ue
Set-WebServicesVirtualDire ctory -identity "Den2k8Exch1\EWS (Default Web Site)" -externalurl https://mail.example.com/EWS/Exchange.asmx -WindowsAuthentication:$Tr ue
Get-ClientAccessServer | Set-ClientAccessServer -AutodiscoverServiceIntern alUri https://Den2k8Exch1.hcl.local/autodiscover/autodiscover.xml
Set-WebServicesVirtualDire ctory 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 -AutodiscoverServiceIntern alUri https://Den2k8Exch1.hcl.local/autodiscover/autodiscover.xml
Enable-OutlookAnywhere -Server Den2k8Exch1 -ExternalHostname "mail.example.com" -ExternalAuthenticationMet hod "Basic" -SSLOffloading:$False
Set-OABVirtualDirectory -identity "Den2k8Exch1\OAB (Default Web Site)" -externalurl https://mail.example.com/OAB -RequireSSL:$true
Set-WebServicesVirtualDire ctory -identity "Den2k8Exch1\EWS (Default Web Site)" -externalurl https://mail.example.com/EWS/Exchange.asmx -BasicAuthentication:$True
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-WebServicesVirtualDire
Set-WebServicesVirtualDire
Get-ClientAccessServer | Set-ClientAccessServer -AutodiscoverServiceIntern
Set-WebServicesVirtualDire
Set-OABVirtualDirectory -Identity "Den2k8Exch1\oab (Default Web Site)" -InternalUrl https://mail.example.com/oab
Get-ClientAccessServer | Set-ClientAccessServer -AutodiscoverServiceIntern
Enable-OutlookAnywhere -Server Den2k8Exch1 -ExternalHostname "mail.example.com" -ExternalAuthenticationMet
Set-OABVirtualDirectory -identity "Den2k8Exch1\OAB (Default Web Site)" -externalurl https://mail.example.com/OAB -RequireSSL:$true
Set-WebServicesVirtualDire
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
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.
ASKER
Also i do have my UCC Cert and is working good.
ASKER
UCC Cert:
mail.example.com
autodiscover.example.com
Den2k8Exch1.hcl.local
Den2k8Exch1
mail.example.com
autodiscover.example.com
Den2k8Exch1.hcl.local
Den2k8Exch1
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Awesome thanks for your help.
ASKER
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>S et-ClientA ccessServe r -Identity Den2k8E
xch1 -AutodiscoverServiceIntern alUri https://Den2k8Exch1.hcl.local/autodiscover/
autodiscover.xml -WindowsAuthentication:$Tr ue
Set-ClientAccessServer : A parameter cannot be found that matches parameter nam
e 'WindowsAuthentication'.
At line:1 char:161
+ Set-ClientAccessServer -Identity Den2k8Exch1 -AutodiscoverServiceIntern alUri
https://Den2k8Exch1.hcl.local/autodiscover/autodiscover.xml -WindowsAuthenticat
ion:$ <<<< True
[PS] C:\Users\administrator.HCL \Desktop>S et-OABVirt ualDirecto ry -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>
[PS] C:\Users\administrator.HCL
xch1 -AutodiscoverServiceIntern
autodiscover.xml -WindowsAuthentication:$Tr
Set-ClientAccessServer : A parameter cannot be found that matches parameter nam
e 'WindowsAuthentication'.
At line:1 char:161
+ Set-ClientAccessServer -Identity Den2k8Exch1 -AutodiscoverServiceIntern
https://Den2k8Exch1.hcl.local/autodiscover/autodiscover.xml -WindowsAuthenticat
ion:$ <<<< True
[PS] C:\Users\administrator.HCL
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
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-->Defau lt Web Site-->VirtualDirectory--> Authentica tion(on the right hand side pane)
ASKER
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.
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