Solved

Change Autodiscover settings in PowerShell

Posted on 2014-04-30
3
10,602 Views
1 Endorsement
Last Modified: 2014-04-30
Hi,

We support a company that changed it's name a while back and we changed all the settings, domains, URL's etc. All is OK apart from the Autodiscover settings in Exchange 2010.

This isn't really a big problem as all the users apart from the Director are on PC's, but his Mac will constantly change the server address to the old address and he wants it changing.

The issue is, when I have tried to change the Internal and External Autodiscover address in PowerShell. The Internal command I used does nothing and the External command throws back an error.

The commands I've tried are:

Internal: Set-ClientAccessServer –Identity * –AutodiscoverServiceInternalUri “https://autodiscover.domain.co.uk/autodiscover/autodiscover.xml”
(This doesn't error but doesn't actually change the internal address)

External: Set-ClientAccessServer –Identity * –AutodiscoverServiceExternalUri “https://autodiscover.domain.co.uk/autodiscover/autodiscover.xml”
(This gives me the error below)

A positional parameter cannot be found that accepts argument '-AutodiscoverServiceExternalUri'.
    + CategoryInfo          : InvalidArgument: (:) [Set-ClientAccessServer], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Set-ClientAccessServer


When I do a Get-AutodiscoverVirtualDirectory | List it show both internal and external address's to still be the old address.

I have also tried with the server address where the * is, but same results.

Any help would be appreciated.

Regards,

James
1
Comment
Question by:YorkData
  • 2
3 Comments
 

Author Comment

by:YorkData
ID: 40031775
Also if I do Get-ClientAccessServer | fl AutoDiscoverServiceInternalUri and ExternalUri The client internal address is correct but the External is blank?

I understand now that I've been changing the client access not the virtual directory, but I'm still unsure why I get the error when trying to change the external address, and how I change the internal and external virtual directory address's?

Thanks
0
 
LVL 26

Accepted Solution

by:
ronnypot earned 500 total points
ID: 40031844
Hi,

If you do a  Get-ClientAccessServer | fl you will get all options for the clientaccessserver cmdlet and you will notice there is no ExternalUri option over here.

The internalurl and externalurl option for the AutodiscoverVirtualDirectory can be set by using the following commands:
For internal: Set-AutodiscoverVirtualDirectory -Identity * –internalurl “https://yourdomainname/autodiscover/autodiscover.xml”

For external: Set-AutodiscoverVirtualDirectory -Identity * –externalurl “https://yourdomainname/autodiscover/autodiscover.xml”

Also don't forget there are serveral other option where to specify a internalurl and externalurl, see this page for all the options: http://exchange.sembee.info/2010/install/clientaccesshostnames.asp
0
 

Author Closing Comment

by:YorkData
ID: 40032048
Thanks for your help. Thought I had tried that command but clearly I hadn't as that worked!

Thanks for the guide. I had done everything in it already. Was just at the last hurdle.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Sometimes Outlook might have problems sending a message. There may be various causes- corrupted PST, AV scanner etc. The message, instead of going to the Sent Items folder, sits in the Outbox indefinitely. To remove it you can use a free tool cal…
If you don't know how to downgrade, my instructions below should be helpful.
In this video we show how to create a Distribution Group in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >>…
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…

758 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

22 Experts available now in Live!

Get 1:1 Help Now