Ask a question

Robert Bird

Running Script Set-VirtualDirectories (Exchange 2007 to 2013) - the Set-WebServicesVirtualDirectory line gives an error.

Hi,

When I ran this script I got an error which was on the line:

Set-WebServicesVirtualDirectory "$HostName\EWS (Default Web Site)" -InternalUrl ((Get-WebServicesVirtualDirectory "$HostName\EWS (Default Web Site)").ExternalUrl)

and the error was

To configure the MAPI/HTTP feature you must specify the InternalUrl, ExternalUrl, or both.

So I run the sub part - Get-WebServicesVirtualDirectory "$HostName\EWS (Default Web Site)").ExternalUrl - which produces (part of output)

Server                          : SERVER-EMAIL
InternalUrl                     : https://server-email.mydomain.local/mapi
InternalAuthenticationMethods   : {Ntlm, OAuth, Negotiate}
ExternalUrl                     :
ExternalAuthenticationMethods   : {Ntlm, OAuth, Negotiate}
AdminDisplayName                :

and I can see that there is no ExternalUrl which I am guessing is the problem, how do I set that ExternaURL, so the command will run?

I did see someone else had the same issue ( https://server-essentials.com/community/answers/sbs-2008-exchange-2007-to-exchange-2013-outlook-desktop-authentication-failures ), but Mariette TeamViewed in to fix, so I'm not sure what the fix was...

Thanks

Rob


asked06/28/2020 09:12
35 views
Add Comment
Last Activity 06/28/2020 10:52

2 Answer(s)

  • Mariette Knap
    Add Comment
    Mariette Knap

    And if this does not work let me fix it for you?


    Reply
    replied 06/28/2020 09:51
  • Robert Bird
    Add Comment
    Host

    OK, thanks


    Reply
    replied 06/28/2020 10:52
Add an Answer