<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>SharePoint Products and Technologies</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/khaleelshaikh/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/khaleelshaikh/feed.xml</link>
    <description>All Posts are provided “AS IS” with no warranties, and confers no rights</description>
    <lastBuildDate>Tue, 16 Apr 2019 06:09:31 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>SharePoint Search Thesaurus not getting updated</title>
      <link>https://docs.microsoft.com/archive/blogs/khaleelshaikh/sharepoint-search-thesaurus-not-getting-updated</link>
      <pubDate>Thu, 12 Apr 2018 08:42:09 GMT</pubDate>
      <dc:creator><![CDATA[Khaleel7585]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/khaleelshaikh/?p=145</guid>
      <description><![CDATA[SharePoint search has a feature called Thesaurus which helps us to add synonyms to the keywords via...]]></description>
      <content:encoded><![CDATA[SharePoint search has a feature called <strong>Thesaurus</strong> which helps us to add <strong>synonyms</strong> to the <strong>keywords</strong> via a file into the search system, post updating it, the search will include these synonyms in the Query automatically along with the actual keyword searched on the site.

&nbsp;

<strong>How to Inject Thesaurus into Search System ?</strong>
Create a Key-Synonym pair .csv file and update it into search system
<strong>Syntax:</strong>
Key Synonym Language
Drinks Coffee en

$searchApp = Get-SPEnterpriseSearchServiceApplication
Import-SPEnterpriseSearchThesaurus -SearchApplication $searchApp -Filename "<a href="https://awsaidnva1135/Projects/Synonyms.csv">\\server1\Synonyms.csv</a>"

Incase if you don't see the new Synonyms being updated or no results returned for the synonym.

Login to the <strong>Query servers</strong> and check the below location to verify if the Thesaurus file is updated or not.
<strong>C:\Program Files\Microsoft Office Servers\16.0\Data\Office Server\Applications\Search\Repository\Journal</strong>

There could be multiple Thesaurus folders (two per SSA) and we need to look for the recently modified folders.
<strong>File 1 :Microsoft.UserDictionaries.Thesaurus.LanguageIndependent.dll</strong>
<strong> File 2 :Microsoft.UserDictionaries.Thesaurus.Languagedependent.dll</strong>

Incase if these are not updated, then Thesaurus won’t work. Need logs collection to understand why.

&nbsp;

In one case scenario, we observed that the Crawler server will have the files updated recently but not the Query servers, then this an issue with the replication to other Query servers.
Further log analysis revealed the that the Search System was missing the Primary Host Controller, which is responsible to replicate these files to all other search servers.

"<strong>Unable to sync primary changes. Primary HostController URL is Null. Will retry in 30 sec</strong>"

&nbsp;

We collected the Host controller details and found that none of the search server is set as Primary.
<strong>Get-SPEnterpriseSearchHostController | select Server, PrimaryHostController, HostControllerURL</strong>

Server PrimaryHostController HostControllerURL
------ --------------------- -----------------
SPServer Name=server1 False net.tcp://server1/ce...
SPServer Name=server2 False net.tcp://server2/ce...
SPServer Name=server3 False net.tcp://server3/ce...
SPServer Name=server4 False net.tcp://server4/ce...

We then set one of the server as Primary Host controller
<strong>$ssi = Get-SPEnterpriseSearchServiceInstance 09f85228-90fa-44a7-8629-1985f0179b55</strong>
<strong> Set-SPEnterpriseSearchPrimaryHostController $ssi</strong>

Server PrimaryHostController HostControllerURL
------ --------------------- -----------------
SPServer Name=server1 False net.tcp://server1/ce...
SPServer Name=server2 <strong>True</strong> net.tcp://server2/ce...
SPServer Name=server3 False net.tcp://server3/ce...
SPServer Name=server4 False net.tcp://server4/ce...

Restarted HostController service on all search servers and it fixed the replication issue.]]></content:encoded>
    </item>
    <item>
      <title>Disable OneDrive for Business (ODB) for a specific user in SPO.</title>
      <link>https://docs.microsoft.com/archive/blogs/khaleelshaikh/disable-onedrive-for-business-odb-for-a-specific-user-in-spo</link>
      <pubDate>Sat, 18 Nov 2017 02:35:41 GMT</pubDate>
      <dc:creator><![CDATA[Khaleel7585]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/khaleelshaikh/?p=135</guid>
      <description><![CDATA[Is there an option like On/Off for OneDrive for Business (ODB) for a specific user ?
The answer is...]]></description>
      <content:encoded><![CDATA[<h4>Is there an option like On/Off for OneDrive for Business (ODB) for a specific user ?</h4>
<h4>The answer is<strong> No</strong>, <span>there is no direct option</span> or a toggle switch to enable/disable ODB because <span>the ODB license is part of SPO license</span>, hence we can't just disable the OneDrive alone.</h4>
However we could do any of the following.
<h4><strong>Option 1:</strong></h4>
<h4><strong>Hide the One Drive App from the O365 App Launcher.</strong></h4>
&nbsp;
<ol type="1">
 	<li value="1"><span>Go to SP Admin center – Settings -  Select Hide for OneDrive for Business as shown</span></li>
</ol>
<img width="1198" height="137" class="alignnone size-full wp-image-95" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/11/b1.png" />

&nbsp;
<ol type="1">
 	<li value="2"><span>Now when the user logs in to the site, he will not see the OneDrive App. (Note : User can still access the OneDrive or Use OneDrive client if he is aware of the actual URL)</span></li>
</ol>
<img width="306" height="240" class="alignnone size-full wp-image-85" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/11/b2.png" />
<h4><strong>Option 2:</strong></h4>
<h4><strong>Stop the User from accessing OneDrive site.</strong></h4>
If the OneDrive site is already created for the user, then we can certainly stop the user from accessing it by following the below steps.

&nbsp;
<ol type="1">
 	<li value="1"><span>Modify the Site Collection Owner on the User's One Drive site.</span>
<ol type="a">
 	<li value="1"><span>Go to SP Admin center - User Profiles - Search for the user account – and from the drop down menu - Select "Manage Site Collection Owners"</span></li>
</ol>
</li>
</ol>
<img width="750" height="240" class="alignnone size-full wp-image-125" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/11/b3.png" />

&nbsp;

<span>               b.Change the Site Collection Administrator from an User account to other admin account.</span>

&nbsp;

<img width="750" height="528" class="alignnone size-full wp-image-115" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/11/b4.png" />

2.<span>Now When the user logs in to the site, and access One Drive, he will get Access denied.</span>

<img width="750" height="274" class="size-full wp-image-105 alignleft" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/11/b5.png" />]]></content:encoded>
    </item>
    <item>
      <title>How to hide "NewsFeed" app from the list of O365 Apps (App launcher)</title>
      <link>https://docs.microsoft.com/archive/blogs/khaleelshaikh/how-to-hide-newsfeed-app-from-the-list-of-o365-apps-app-launcher</link>
      <pubDate>Sat, 11 Nov 2017 03:36:14 GMT</pubDate>
      <dc:creator><![CDATA[Khaleel7585]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/khaleelshaikh/?p=16</guid>
      <description><![CDATA[In case if you wanted to hide "NewsFeed" app from the list of O365 Apps (App launcher), there is no...]]></description>
      <content:encoded><![CDATA[<h3>In case if you wanted to hide "<strong>NewsFeed</strong>" app from the list of O365 Apps (App launcher), there is no direct way to disable it like the below apps.</h3>
<img width="1237" height="154" class="alignnone size-full wp-image-26" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/11/i11.png" />
<h2 style="margin: 0in;font-family: 'Segoe UI';font-size: 10.0pt"><span style="font-weight: bold"></span></h2>
<h5 style="margin: 0in;font-family: Calibri;font-size: 14.0pt">We can use the below options to hide or disable the NewsFeed app.</h5>
&nbsp;
<h6 style="margin: 0in;font-family: Calibri;font-size: 12.0pt"><strong>Option 1: To hide it from the Home Tab (Note: This setting is specific to each user)</strong></h6>
&nbsp;
<p style="margin: 0in;font-family: 'Segoe UI';font-size: 10.0pt"><img width="343" height="343" class="alignnone size-full wp-image-27" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/11/i2.png" /></p>
<p style="margin: 0in"></p>
&nbsp;
<h6 style="margin: 0in;font-family: Calibri;font-size: 12.0pt"><strong>Option 2 : To Disable Newsfeed for all the users.</strong></h6>
&nbsp;
<p style="margin: 0in;margin-left: .375in;font-family: Calibri;font-size: 10.0pt">•         Sign in to Office 365 with your work or school account.</p>
<p style="margin: 0in;margin-left: .375in;font-family: Calibri;font-size: 10.0pt">•         Go to the SharePoint admin center.</p>
<p style="margin: 0in;margin-left: .375in;font-family: Calibri;font-size: 10.0pt">•         Select Settings - <span style="color: #404344;background: white">Enterprise Social Collaboration.</span></p>
<p style="margin: 0in;margin-left: .375in;font-family: Calibri;font-size: 10.0pt">•         Check "<strong>Use Yammer.com service</strong>"</p>
&nbsp;
<h3 style="margin: 0in;font-family: Verdana;font-size: 10.0pt"><img width="1165" height="139" class="alignnone size-full wp-image-35" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/11/i3.png" /></h3>
<h3 style="margin: 0in;font-family: Verdana;font-size: 10.0pt"></h3>
<h3 style="margin: 0in;font-family: Verdana;font-size: 10.0pt"></h3>
<p style="margin: 0in;margin-left: .375in;font-family: Calibri;font-size: 10.0pt">•         Click Ok.</p>
<p style="margin: 0in;margin-left: .375in;font-family: Calibri;font-size: 10.0pt">•         Go to the SharePoint admin center again</p>
<p style="margin: 0in;margin-left: .375in;font-family: Calibri;font-size: 10.0pt">•         Select user profiles.</p>
<p style="margin: 0in;margin-left: .375in;font-family: Calibri;font-size: 10.0pt">•         Under My Site Settings, click Setup My Sites.</p>
<p style="margin: 0in;margin-left: .375in;font-family: Calibri;font-size: 10.0pt">•         In the Newsfeed section, <strong>clear the Enable activities in My Site newsfeeds</strong> check box.</p>

<h3 style="margin: 0in;font-family: Verdana;font-size: 10.0pt"></h3>
<h3 style="margin: 0in;font-family: Verdana;font-size: 10.0pt"><img width="853" height="129" class="alignnone size-full wp-image-55" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/11/i41.png" /></h3>
&nbsp;
<p style="margin: 0in;margin-left: .375in;font-family: Calibri;font-size: 10.0pt">•         Click OK.<span style="background: white"> </span></p>
<p style="margin: 0in;margin-left: .375in;font-family: Calibri;font-size: 10.0pt">•        <strong> The above changes would take 30 mins to reflect the changes. Logoff and Login back after 30 mins to see the changes.</strong></p>]]></content:encoded>
    </item>
  </channel>
</rss>