Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Change Autodiscover settings in PowerShell

Posted on 2014-04-30
3
Medium Priority
?
14,585 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A couple of months ago we ran into an issue that necessitated re-creating our Edge Subscriptions. However, when we attempted to execute the command: New-EdgeSubscription -filename C:\NewEdgeSub_01.xml we received an error indicating that the LDAP se…
On September 18, Experts Exchange launched the first installment of the Help Bell, a new feature for Premium Members, Team Accounts, and Qualified Experts. The Help Bell will serve as an additional tool to help teams increase question visibility.
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

715 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