Link to home
Start Free TrialLog in
Avatar of Barry Fields
Barry FieldsFlag for United States of America

asked on

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
ocal/autodiscover/autodiscover.xml

A parameter cannot be found that matches parameter name 'AutodiscoverServiceInternalUrl'.
    + CategoryInfo          : InvalidArgument: (:) [Set-ClientAccessServer], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Set-ClientAccessServer
    + PSComputerName        : mail-ii.dgdt.local
Avatar of Seth Simmons
Seth Simmons
Flag of United States of America image

described here

Set-ClientAccessServer
https://technet.microsoft.com/en-us/library/bb125157(v=exchg.160).aspx

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
ASKER CERTIFIED SOLUTION
Avatar of Mahesh
Mahesh
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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"
Avatar of Barry Fields

ASKER

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
Found the right command and the url is displayed

Get-ClientAccessServer Mail-II | fl *InternalUri*
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
HERE IS THE ATTACHMENTOutlook-error.pptx
Your issue is:
the command is setting up .local address and certificate is for.com and hence you are getting error

your command should be:

Get-ClientAccessServer | Set-ClientAccessServer -AutodiscoverServiceInternalUri "https://autodiscover.mail-ii.dgdt.com/autodiscover.xml"

Open in new window


The above command should set client access uri on all CAS servers to .com and then check if it works
thanks