Link to home
Start Free TrialLog in
Avatar of smartsystemsinc
smartsystemsinc

asked on

Exchange 2007 Shell Issue

I have SBS 2008 and have been troubleshooting  the Outlook 2007 / Exchange 2007 Autodiscover certificate issue. When I attempt to enter a script to Exchange Management shell as part of solution to solve Outlook 2007 certificate issue I get an error. I have SBS 2008 have imported the revised crt with autodiscover.domain.org added to it. And I successfully completed Step one of MS Article kb 940726 where I ran the Set-ClientAccessServer -Identity CAS_Server_Name -AutodiscoverServiceInternalUri https://mail.contoso.com/autodiscover/autodiscover.xml command.

However, when i attempt either the next step or the one following that step, it says the objects do not exist.

My exact syntax and shell error are in the code section. Thanks very much for any help.



[PS] C:\Windows\System32>Set-WebServicesVirtualDirectory -Identity server.domain.local\ews -InternalUrl https://remote.domain.com/ews/exchange.asmx
Set-WebServicesVirtualDirectory : The operation could not be performed because
object 'server.domain.local\ews' could not be found on domain controller 'SERVER
.domain.local'.
At line:1 char:32
+ Set-WebServicesVirtualDirectory  <<<< -Identity server.domain.local\ews -Inter
nalUrl https://remote.domain.com/ews/exchange.asmx
[PS] C:\Windows\System32>

Open in new window

Avatar of Rammestein
Rammestein
Flag of India image

Avatar of Akhater
try this code instead

Set-WebServicesVirtualDirectory -Identity server.domain.local\EWS(default web site) -InternalUrl https://remote.domain.com/ews/exchange.asmx

Open in new window

run the following, in order to get the exact name of your WebSite ::
get-WebServicesVirtualDirectory

Locate the identity part.. and use it in the command
Set-WebServicesVirtualDirectory -Identity IdendityYouvelocated -InternalUrl https://remote.domain.com/ews/exchange.asmx
 
Avatar of smartsystemsinc
smartsystemsinc

ASKER

Ok...I appreciate the responses.

Rammerstein: Yes thats the procedure I am following.
Akhater: I tried that syntax exactly already and get the same error.
seb acker: I think you are onto my issue. I think I have a simple syntactical error. I ran the command you indicated to get Virtual directory adn this is what I got.
[PS] C:\Windows\System32>get-WebServicesVirtualDirectory

Name                                    Server                                  InternalUrl
----                                    ------                                  -----------
EWS (SBS Web Applications)              SERVER                                  https://sites/EWS/Exchange.asmx
ASKER CERTIFIED SOLUTION
Avatar of tigermatt
tigermatt
Flag of United Kingdom of Great Britain and Northern Ireland 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
Thank you very very much. I applied the same syntax to the OAB and Uniofied Messagiing sites adn that worked. Fianlly those propmts for certs went away.
There seems to be a difference in the MS article for solving the exchaneg problem and the SBS implementation of that solution. note teh indication of the Internal AND ExtrenalURL difference adn the correctly specified virtual directory in SBS Web applcations.