{"id":5069,"date":"2024-07-12T12:40:07","date_gmt":"2024-07-12T10:40:07","guid":{"rendered":"https:\/\/leeryanrs.com\/?p=5069"},"modified":"2024-07-12T12:40:07","modified_gmt":"2024-07-12T10:40:07","slug":"exchange-autodiscover-url","status":"publish","type":"post","link":"https:\/\/leeryanrs.com\/?p=5069","title":{"rendered":"Exchange autodiscover URL"},"content":{"rendered":"\n<p>After certain updates, it seems autodiscover url can get removed from the existing config, the below will re-configure it. Commands are to be used in the Exchange Management Shell<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Set-ClientAccessService -Identity \"<strong>HOSTNAME<\/strong>\" -AutoDiscoverServiceInternalUri https:\/\/<strong>mail.XX.com<\/strong>\/Autodiscover\/Autodiscover.xml<\/code><\/pre>\n\n\n\n<p>This will list the current autodiscover url<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-clientAccessServer | fl Name,AutoDiscoverServiceInternalUri<\/code><\/pre>\n\n\n\n<p>This will list all exchange services url&#8217;s<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$virtdirs = \"ECP,OWA,OAB,WebServices,Activesync,autodiscover,mapi\"\n$array = $virtdirs.split(\",\")\nforeach ($i in $array) {\n$j = \"Get-\"+$i+\"VirtualDirectory\"+\" | fl name,server,internalurl,externalurl\"\niex $j\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>After certain updates, it seems autodiscover url can get removed from the existing config, the below will re-configure it. Commands are to be used in the Exchange Management Shell This will list the current autodiscover url This will list all exchange services url&#8217;s<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[31,38],"class_list":["post-5069","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-exchange","tag-powershell"],"_links":{"self":[{"href":"https:\/\/leeryanrs.com\/index.php?rest_route=\/wp\/v2\/posts\/5069","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/leeryanrs.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/leeryanrs.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/leeryanrs.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/leeryanrs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5069"}],"version-history":[{"count":0,"href":"https:\/\/leeryanrs.com\/index.php?rest_route=\/wp\/v2\/posts\/5069\/revisions"}],"wp:attachment":[{"href":"https:\/\/leeryanrs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/leeryanrs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5069"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/leeryanrs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}