Exchange 2007 Shell Issue

Posted on 2009-04-23
Last Modified: 2012-05-06
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 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 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

Set-WebServicesVirtualDirectory : The operation could not be performed because

object 'server.domain.local\ews' could not be found on domain controller 'SERVER


At line:1 char:32

+ Set-WebServicesVirtualDirectory  <<<< -Identity server.domain.local\ews -Inter


[PS] C:\Windows\System32>

Open in new window

Question by:smartsystemsinc
    LVL 7

    Expert Comment

    LVL 49

    Expert Comment

    try this code instead

    Set-WebServicesVirtualDirectory -Identity server.domain.local\EWS(default web site) -InternalUrl

    Open in new window

    LVL 13

    Expert Comment

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

    Locate the identity part.. and use it in the command
    Set-WebServicesVirtualDirectory -Identity IdendityYouvelocated -InternalUrl

    Author Comment

    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
    LVL 58

    Accepted Solution


    On an SBS Server, the Exchange Virtual Directories are located in the SBS Web Applications web, not the Default Web Site. Your command for updating the EWS virtual directory at the Exchange Shell would therefore be:

    Set-WebServicesVirtualDirectory -Id "SERVER\EWS (SBS Web Applications" -InternalUrl -ExternalUrl


    Author Closing Comment

    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.

    Author Comment

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Email statistics and Mailbox database quotas You might have an interest in attaining information such as mailbox details, mailbox statistics and mailbox database details from Exchange server. At that point, knowing how to retrieve this information …
    ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
    This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
    This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now