Solved

Change Autodiscover settings in PowerShell

Posted on 2014-04-30
3
11,770 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
Large Outlook files lead to various unwanted errors and corruption issues. Furthermore, large outlook files can also make Outlook take longer to start-up, search, navigate, and shut-down. So, In this article, i will discuss a method to make your Out…
how to add IIS SMTP to handle application/Scanner relays into office 365.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 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