{"id":48,"date":"2015-03-01T05:32:09","date_gmt":"2015-03-01T05:32:09","guid":{"rendered":"https:\/\/wp.local\/?p=48"},"modified":"2015-03-04T17:47:44","modified_gmt":"2015-03-04T17:47:44","slug":"windows-search-service-crawl-could-not-be-completed-on-content","status":"publish","type":"post","link":"https:\/\/blog.c-devtech.net\/?p=48","title":{"rendered":"Windows Search Service &#8211; Crawl could not be completed on content&#8230;"},"content":{"rendered":"<p>At random times on Windows Server 2012r2 x64, usually after rebooting, I would get a warning from the Windows Search Service (xxx added to make the error less specific):<\/p>\n<p><em>Crawl could not be completed on content source &lt;winrt:\/\/{S-1-5-21-24xxxxxx66-12xxxxx84-2xxxxxxxx9-1001}\/&gt;.<\/em><\/p>\n<p><em>Context:\u00a0 Application, SystemIndex Catalog<\/em><\/p>\n<p><em>Details:<\/em><br \/>\n<em> \u00a0\u00a0\u00a0 The parameter is incorrect.\u00a0 (HRESULT : 0x80070057) (0x80070057)<\/em><\/p>\n<p>The solution for me to fix this warning was to go into the group policy editor and add the offending folder to the default excluded paths list.<\/p>\n<ol>\n<li>Run <em>gpedit.msc<\/em><\/li>\n<li>In <em>Local Group Policy Editor<\/em>, Select <em>Computer Configuration<\/em> -&gt;<em> Administrative Templates<\/em> -&gt; <em>Windows Components<\/em> -&gt; <em>Search.<\/em><\/li>\n<li>In <em>Search<\/em>, double click on <em>Default excluded paths<\/em>.<\/li>\n<li>In <em>Default Excluded Paths<\/em>, First select <em>Enabled<\/em> in the upper left corner. Then click on the\u00a0 <em>Show&#8230;<\/em> button next to &#8216;Default Excluded Paths&#8217;<em>. <\/em><\/li>\n<li>In <em>Show Contents<\/em>, add &#8220;winrt:\/\/{<em>S-1-5-21-24xxxxxx66-12xxxxx84-2xxxxxxxx9-1001<\/em>}\/&#8221; (without quotes) and then click <em>OK<\/em><\/li>\n<\/ol>\n<p>Next force Windows Search Service to re-index.<\/p>\n<ol>\n<li>Stop the service using <em>services.msc<\/em> &#8211; <em>Windows Searc<\/em>h or from <em>Administrator: Command Prompt<\/em> &#8211; net stop wsearch<\/li>\n<li>Edit the registry key <em>HKLM\/Software\/Microsoft\/Windows\/Search\/SetupCompletedSuccessfully <\/em>and set it to 0<\/li>\n<li>Start the service using <em>services.msc<\/em> &#8211; <em>Windows Search<\/em> or from <em>Administrator: Command Prompt<\/em> &#8211; net start wsearch<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>At random times on Windows Server 2012r2 x64, usually after rebooting, I would get a warning from the Windows Search Service (xxx added to make the error less specific): Crawl could not be completed on content source &lt;winrt:\/\/{S-1-5-21-24xxxxxx66-12xxxxx84-2xxxxxxxx9-1001}\/&gt;. Context:\u00a0 Application, &hellip; <a href=\"https:\/\/blog.c-devtech.net\/?p=48\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[4],"tags":[],"class_list":["post-48","post","type-post","status-publish","format-standard","hentry","category-windows-server-2012r2"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1IEK3-M","jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blog.c-devtech.net\/index.php?rest_route=\/wp\/v2\/posts\/48","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.c-devtech.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.c-devtech.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.c-devtech.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.c-devtech.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=48"}],"version-history":[{"count":8,"href":"https:\/\/blog.c-devtech.net\/index.php?rest_route=\/wp\/v2\/posts\/48\/revisions"}],"predecessor-version":[{"id":69,"href":"https:\/\/blog.c-devtech.net\/index.php?rest_route=\/wp\/v2\/posts\/48\/revisions\/69"}],"wp:attachment":[{"href":"https:\/\/blog.c-devtech.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.c-devtech.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.c-devtech.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}