Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Change Autodiscover settings in PowerShell

Posted on 2014-04-30
3
Medium Priority
?
15,250 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 2000 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Want to know how to use Exchange Server Eseutil command? Go through this article as it gives you the know-how.
In this post, I will showcase the steps for how to create groups in Office 365. Office 365 groups allow for ease of flexibility and collaboration between staff members.
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…
Suggested Courses

783 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