Barry Fields
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-Cl ientAccess Server -Identity CAS_Server_Name -AutodiscoverServiceIntern alUrl mail-ii.dgdt.l
ocal/autodiscover/autodisc over.xml
A parameter cannot be found that matches parameter name 'AutodiscoverServiceIntern alUrl'.
+ CategoryInfo : InvalidArgument: (:) [Set-ClientAccessServer], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Set -ClientAcc essServer
+ PSComputerName : mail-ii.dgdt.local
[PS] C:\Windows\system32>Set-Cl
ocal/autodiscover/autodisc
A parameter cannot be found that matches parameter name 'AutodiscoverServiceIntern
+ CategoryInfo : InvalidArgument: (:) [Set-ClientAccessServer], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Set
+ PSComputerName : mail-ii.dgdt.local
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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"
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"
ASKER
The command worked but when I check the status of the CAS via Get-AutodiscoverVirtualDir ectory –server servername the internal URL is not displayed
Name Server InternalUrl
---- ------ -----------
Autodiscover (Default Web Site) MAIL-II
Name Server InternalUrl
---- ------ -----------
Autodiscover (Default Web Site) MAIL-II
ASKER
Found the right command and the url is displayed
Get-ClientAccessServer Mail-II | fl *InternalUri*
Get-ClientAccessServer Mail-II | fl *InternalUri*
ASKER
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
ASKER
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:
The above command should set client access uri on all CAS servers to .com and then check if it works
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"
The above command should set client access uri on all CAS servers to .com and then check if it works
ASKER
thanks
Set-ClientAccessServer
https://technet.microsoft.com/en-us/library/bb125157(v=exchg.160).aspx
that said, your command should look more like this...
Open in new window
...or something along those lines. point is, the parameter is the full URL pointing to autodiscover.xml file