How to set CAS autodiscovery internal URL

I am trying to set the internal URL for the CAS autodiscovery service but I get the following error. What is the proper syntax

[PS] C:\Windows\system32>Set-ClientAccessServer -Identity CAS_Server_Name -AutodiscoverServiceInternalUrl mail-ii.dgdt.l

A parameter cannot be found that matches parameter name 'AutodiscoverServiceInternalUrl'.
    + CategoryInfo          : InvalidArgument: (:) [Set-ClientAccessServer], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Set-ClientAccessServer
    + PSComputerName        : mail-ii.dgdt.local
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Seth SimmonsSr. Systems AdministratorCommented:
described here


that said, your command should look more like this...

Set-ClientAccessServer -Identity CAS_Server_Name -AutodiscoverServiceInternalUrl "https://autodiscover.mail-ii.dgdt.local/autodiscover.xml"

Open in new window

...or something along those lines.  point is, the parameter is the full URL pointing to autodiscover.xml file
it's Autodiscoverinternaluri and not Autodiscover internalurl

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
it's Autodiscoverinternaluri and not
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

Sunil ChauhanLead AdministratorCommented:
a tip for you,

always hit tab to complete the parameters in any CMD, as stated above the error is because of the incorrect parameter name.
you can always type few character and then hit Tab for example below.

Set-ClientAccessServer -Identity "MBX-01" -Auto "hit TAB"

the repeated tab will show all the parameter start with "-auto"
Barry-f4Author Commented:
The command worked but when I check the status of the CAS via Get-AutodiscoverVirtualDirectory –server servername the internal URL is not displayed

Name                                                     Server                                  InternalUrl
----                                                            ------                                         -----------
Autodiscover (Default Web Site)         MAIL-II
Barry-f4Author Commented:
Found the right command and the url is displayed

Get-ClientAccessServer Mail-II | fl *InternalUri*
Barry-f4Author Commented:
Here is my issue, on several workstations (not all) whenever Outlook is opened I get the following errors in the attached file. The cert appears to be imported successfully and the workstation connects to the Exchange server. Needless to say may users are annoyed, any suggestions?
attachment is missing
Barry-f4Author Commented:
HERE IS THE ATTACHMENTOutlook-error.pptx
Your issue is:
the command is setting up .local address and certificate is and hence you are getting error

your command should be:

Get-ClientAccessServer | Set-ClientAccessServer -AutodiscoverServiceInternalUri ""

Open in new window

The above command should set client access uri on all CAS servers to .com and then check if it works
Barry-f4Author Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.