locked
Exchange 07 - set-owavirtualdirectory error RRS feed

  • Question

  • Hi all

    I am trying implement to autodiscovery and active sync in our Exchange environment , I am new to this Powershell Tool

    When Executing the Set Set-OWAVirtualDirectory –Identity myowa01\OWA (default web site)
    -ExternalURL https:owa.projectxnet.com

    It says

    Set-OwaVirtualDirectory : The operation could not be performed because object '
    myowa01\OWA' could not be found on domain controller 'myADC04.
    At line:1 char:24
    + Set-OWAVirtualDirectory <<<<  -Identity myowa01\OWA
        + CategoryInfo          : NotSpecified: (0:Int32) [Set-OwaVirtualDirectory
       ], ManagementObjectNotFoundException
        + FullyQualifiedErrorId : 99DB5F45,Microsoft.Exchange.Management.SystemCon
       figurationTasks.SetOwaVirtualDirectory

    Kindly advice what i am doing wrong

    I need Execute these commands to implement the autodiscover

    Set-OWAVirtualDirectory -Identity myowa01\OWA (default web site)

    -ExternalURL https://webmail.exchange14.nl/OWA

    Set-OABVirtualDirectory -Identity myowa01\OAB (default web site)

    -ExternalURL https://webmail.exchange14.nl/OAB

    Set-WebServicesVirtualDirectory -Identity myowa01\EWS (default web site) -ExternalURL https://webmail.exchange14.nl/ews/exchange.asmx

    Set-ActiveSyncVirtualDirectory -Identity myowa01\Microsoft-Server-ActiveSync (default web site)

    -ExternalURL https://webmail.exchange14.nl/Microsoft-Server-ActiveSync

    This setting is only valid for Exchange Server 2010:

    Set-ECPVirtualDirectory -Identity myowa01\ECP (default web site)

    -ExternalURL https://webmail.exchange14.nl/ECP

    Thanks in Advance

    Sabarish

    Friday, August 24, 2012 5:00 PM

Answers

All replies

  • Sabarish,

    Try with the additional switch as given below:

    Set-OwaVirtualDirectory -identity "myowa01\ECP (default web site) " -RedirectToOptimalOWAServer $false


    Regards from ExchangeOnline | Windows Administrator's forums

    • Marked as answer by Sabarish G Friday, August 24, 2012 5:32 PM
    • Unmarked as answer by Sabarish G Friday, August 24, 2012 5:33 PM
    • Marked as answer by Sabarish G Friday, August 24, 2012 5:33 PM
    Friday, August 24, 2012 5:20 PM
  • Hi Philip,

    This Worked perfectly

    Set-OwaVirtualDirectory -identity "myowa01\owa (default web site) " -RedirectToOptimalOWAServer $false

    Shall i try this for other scripts as well \

    Set-OABVirtualDirectory -Identity myowa01\OAB (default web site) " -RedirectToOptimalOWAServer $false

    Set-WebServicesVirtualDirectory -Identity myowa01\EWS (default web site)  -RedirectToOptimalOWAServer $false

    Set-ActiveSyncVirtualDirectory -Identity myowa01\Microsoft-Server-ActiveSync (default web site) -RedirectToOptimalOWAServer $false

    Set-ECPVirtualDirectory -Identity myowa01\ECP (default web site) ) -RedirectToOptimalOWAServer $false

    Kindly advice

    Friday, August 24, 2012 5:43 PM
  • Hi Phillip

    Could I try this for all the vir dirs

    Set-OABVirtualDirectory -Identity myowa01\OAB (default web site) " -RedirectToOptimalOWAServer $false

    Set-WebServicesVirtualDirectory -Identity myowa01\EWS (default web site)  -RedirectToOptimalOWAServer $false

    Set-ActiveSyncVirtualDirectory -Identity myowa01\Microsoft-Server-ActiveSync (default web site) -RedirectToOptimalOWAServer $false

    Set-ECPVirtualDirectory -Identity myowa01\ECP (default web site) ) -RedirectToOptimalOWAServer $false

    Thanks in Advance

    Regards

    Sabarish

    Monday, August 27, 2012 11:38 AM
  • Please refer to:

    http://technet.microsoft.com/en-us/library/bb123515(EXCHG.80).aspx


    Fiona Liao

    TechNet Community Support

    Wednesday, August 29, 2012 9:58 AM
    Moderator