<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="www.w3.org/2005/Atom" xmlns:sy="purl.org/rss/1.0/modules/syndication/" xmlns:dc="purl.org/dc/elements/1.1/" xmlns:content="purl.org/rss/1.0/modules/content/" xmlns:wfw="wellformedweb.org/CommentAPI/" xmlns:slash="purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>David’s SharePoint Blog</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/dwilborn/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/dwilborn/feed.xml</link>
    <description>The official blog of David Wilborn, Microsoft Support Escalation Engineer</description>
    <lastBuildDate>Tue, 16 Apr 2019 05:04:41 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Migrating SharePoint to a new domain--do it the right way</title>
      <link>https://docs.microsoft.com/archive/blogs/dwilborn/migrating-sharepoint-to-a-new-domain-do-it-the-right-way</link>
      <pubDate>Mon, 23 Jul 2018 13:51:53 GMT</pubDate>
      <dc:creator><![CDATA[David W - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/dwilborn/?p=95</guid>
      <description><![CDATA[I recently worked a case where the customer was having issues with getting the Distributed Cache...]]></description>
      <content:encoded><![CDATA[I recently worked a case where the customer was having issues with getting the Distributed Cache running. When attempting to run a Register-CacheHost commandlet, they would get the following error: "The requested name is valid but no data of the requested type was found."

To investigate further, we ultimately queried the Config database to check settings for the CacheConfigCluster:
<pre>SELECT * FROM dbo.CacheClusterConfig WHERE EntryType = 'hosts'</pre>
When we did this, we could see that servers with different domains than the current domain name were listed. It turns out the customer had attempted to migrate an existing farm to a new domain by changing account settings in SharePoint and SQL. While you might be able to get away with this for a single-server development environment (there are many blogs out there detailing how to do this), attempting to do this with a production and/or multi-server server farm is a <strong>very bad idea</strong>, and is in fact <strong>unsupported</strong>.

Simply "moving" a SharePoint farm from one domain to another is actually not possible. SharePoint hard-codes server and account names, including domains, in the Configuration database. This is done in multiple tables. There is no way to modify these settings in a supported manner.

Fundamentally, you must create a new farm in the target domain and move the existing content. At a high level, this involves the following steps:
<ol>
 	<li>Disconnect and rejoin servers to a new farm with new config database</li>
 	<li>Create new Service Applications using existing DBs when possible</li>
 	<li>Create new web applications</li>
 	<li>Deploy all the custom solutions and custom configuration</li>
 	<li>Mount the databases to respected web applications</li>
 	<li>Migrate the users from old domain to new domain</li>
</ol>]]></content:encoded>
    </item>
    <item>
      <title>Setting Up a My Site Host On a Non-Root Site Collection</title>
      <link>https://docs.microsoft.com/archive/blogs/dwilborn/setting-up-a-my-site-host-on-a-non-root-site-collection</link>
      <pubDate>Wed, 11 Apr 2018 13:03:38 GMT</pubDate>
      <dc:creator><![CDATA[David W - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/dwilborn/?p=45</guid>
      <description><![CDATA[There are a number of reasons you may need to set up My Sites under an existing web application,...]]></description>
      <content:encoded><![CDATA[There are a number of reasons you may need to set up My Sites under an existing web application, rather than its own standalone web application. However, most of SharePoint's public documentation assumes your My Site Host will be on its own web app. It's completely supported to have the My Site Host under a different web application, but there are a few gotchas that can confuse or frustrate an admin when setting this up for the first time. Is this article, I'll go over the steps for configuring My Sites beneath the Site Collection of an existing web application.

In this article I'll be setting up a My Site Host on a farm as follows:

URL of web application: spsa2013
URL of My Site Host: spsa2013/sites/MySites
URL for each user's My Site: spsa2013/sites/MySites/personal/username

We'll assume that a site has already been set up on spsa2013. It is a requirement that all web applications have a root site.
<h3>Creating the My Site Host</h3>
You'll create the My Site Host in the standard way via Central Admin -&gt; Application Management -&gt; Create Site Collections

<img width="1024" height="669" class="alignnone size-large wp-image-55" alt="" src="https://msdnshared.blob.core.windows.net/media/2018/04/CreateSiteCollection-1024x669.png" />

In my example, you can see that I picked the <strong>spsa2013</strong> Web Application, chose /sites/<strong>MySites</strong> for the URL, and selected the <strong>My Site Host</strong> template. You'll also need to choose a Primary Site Collection Administrator, then click <strong>OK</strong>.
<h3>Setting up Managed Paths</h3>
On the Web Application hosting the My Sites, we'll need to set up one new <strong>Explicit</strong> path for the My Site Host and one new <strong>Wildcard</strong> path for the individual My Sites to be placed under. It is critical that this is set up correctly. This is accomplished from Central Admin -&gt; Manage Web Applications -&gt; Managed Paths:

<img width="627" height="624" class="alignnone size-full wp-image-65" alt="" src="https://msdnshared.blob.core.windows.net/media/2018/04/ManagedPaths.png" />

The distinction here is that the My Site Host path (sites/mysites) has an <strong>explicit</strong> inclusion (since there is a site collection located at this URL) and the Personal path gets a <strong>wildcard</strong> inclusion (since there are site collections <em>under</em> this URL but no site at the sites/mysites/personal URL itself).
<h3>Setting up Self-Service Site Creation</h3>
This is handled from Central Admin -&gt; Manage Web Applications -&gt; Self-Service Site Creation:

<img width="759" height="439" class="alignnone size-full wp-image-75" alt="" src="https://msdnshared.blob.core.windows.net/media/2018/04/self-service.png" />

On this screen you need only to set Site Collections to <strong>On</strong>. You don't need to be concerned about the URL that is displayed, this is not used when My Sites are created. Additionally, if you have set up Quotas, you can select a quota to be used for My Sites at this time.
<h3>Configuring The <strong>My Site</strong> settings in the User Profile Service Application</h3>
The final step is accomplished via the User Profile Service Application, Central Admin -&gt; Manage Service Applications -&gt; User Profile Service Application. Then select <strong>Setup My Sites</strong> from the <strong>My Site Settings</strong> section on the bottom of the screen.

<img width="1024" height="329" class="alignnone size-large wp-image-85" alt="" src="https://msdnshared.blob.core.windows.net/media/2018/04/MySiteSettings-1024x329.png" />

Important items to note:
<ul>
 	<li>While the text box is not large enough to display the entire URL, note that the My Site Host location is set to the full My Site Host path we set up previously: <strong>spsa2013/sites/MySites/</strong></li>
 	<li>In the <strong>Location</strong> field, you must <em>include the full path</em> specified when you created the wildcard Managed Paths, in this case <strong>sites/MySites/Personal</strong>. If you only put <strong>Personal</strong> in the field, SharePoint will attempt to create the My Sites at <strong>spsa2013/personal</strong>, and My Site creation will fail.</li>
</ul>
If you had previously entered invalid values or are changing the My Site location, you may need to restart the SharePoint Timer Service, as well as the User Profile Service Application app pool, for the changes to take effect. You should also exit and reopen your browser as the My Site URL can be cached.
<h3>Errors to look for</h3>
If the Managed Paths or Personal Site Location are not set up correctly, you may end up seeing something like the following in the Event Viewer logs. Note the incorrect URL path in the <strong>String1</strong> parameter of the first message:

<strong>-</strong> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">Event</span></span><span class="ns"><span style="color: #ff0000"> xmlns</span></span><span class="m"><span style="color: #0000ff">="</span></span><b class="ns"><span style="color: #ff0000">schemas.microsoft.com/win/2004/08/events/event</span></b><span style="color: #0000ff"><span class="m">"</span><span class="m">&gt;</span></span>
<div class="e">
<div class="c"><strong>-</strong> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">System</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
<div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">Provider</span></span> <span class="t"><span style="color: #990000">Name</span></span><span class="m"><span style="color: #0000ff">="</span></span><b>Microsoft-SharePoint Products-SharePoint Portal Server</b><span class="m"><span style="color: #0000ff">"</span></span><span class="t"><span style="color: #990000"> Guid</span></span><span class="m"><span style="color: #0000ff">="</span></span><b>{8B3DDD3D-2B09-4669-BF81-E2D6921FEEEA}</b><span style="color: #0000ff"><span class="m">"</span><span class="m"> /&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">EventID</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span><span class="tx"><strong>5187</strong></span><span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">EventID</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">Version</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span><span class="tx"><strong>16</strong></span><span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">Version</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">Level</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span><span class="tx"><strong>2</strong></span><span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">Level</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">Task</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span><span class="tx"><strong>1</strong></span><span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">Task</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">Opcode</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span><span class="tx"><strong>0</strong></span><span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">Opcode</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">Keywords</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span><span class="tx"><strong>0x4000000000000000</strong></span><span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">Keywords</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">TimeCreated</span></span> <span class="t"><span style="color: #990000">SystemTime</span></span><span class="m"><span style="color: #0000ff">="</span></span><b>2018-04-10T16:53:56.804161400Z</b><span style="color: #0000ff"><span class="m">"</span><span class="m"> /&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">EventRecordID</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span><span class="tx"><strong>358614</strong></span><span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">EventRecordID</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">Correlation</span></span> <span class="t"><span style="color: #990000">ActivityID</span></span><span class="m"><span style="color: #0000ff">="</span></span><b>{D4BBDA58-99F3-4987-BB17-684A7AD188DE}</b><span style="color: #0000ff"><span class="m">"</span><span class="m"> /&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">Execution</span></span> <span class="t"><span style="color: #990000">ProcessID</span></span><span class="m"><span style="color: #0000ff">="</span></span><b>6868</b><span class="m"><span style="color: #0000ff">"</span></span><span class="t"><span style="color: #990000"> ThreadID</span></span><span class="m"><span style="color: #0000ff">="</span></span><b>4336</b><span style="color: #0000ff"><span class="m">"</span><span class="m"> /&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">Channel</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span><span class="tx"><strong>Application</strong></span><span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">Channel</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">Computer</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span><span class="tx"><strong>spsa2013.contoso.com</strong></span><span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">Computer</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">Security</span></span> <span class="t"><span style="color: #990000">UserID</span></span><span class="m"><span style="color: #0000ff">="</span></span><b>S-1-5-21-2101011316-2865436131-4185517455-1104</b><span style="color: #0000ff"><span class="m">"</span><span class="m"> /&gt;</span></span></div>
</div>
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">System</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
</div>
<div class="e">
<div class="c"><strong>-</strong> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">EventData</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
<div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span style="color: #990000"><span class="t">Data</span><span class="t"> Name</span></span><span class="m"><span style="color: #0000ff">="</span></span><b>string0</b><span style="color: #0000ff"><span class="m">"</span><span class="m">&gt;</span></span><span class="tx"><strong>CONTOSO\Administrator</strong></span><span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">Data</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span style="color: #990000"><span class="t">Data</span><span class="t"> Name</span></span><span class="m"><span style="color: #0000ff">="</span></span><b>string1</b><span style="color: #0000ff"><span class="m">"</span><span class="m">&gt;</span></span><span class="tx" style="color: #ff6600"><strong>spsa2013/personal/administrator</strong></span><span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">Data</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span style="color: #990000"><span class="t">Data</span><span class="t"> Name</span></span><span class="m"><span style="color: #0000ff">="</span></span><b>string2</b><span style="color: #0000ff"><span class="m">"</span><span class="m">&gt;</span></span><span class="tx"><strong>Microsoft.Office.Server.UserProfiles.PersonalSiteCreateConfigurationException: A failure was encountered while attempting to create the site, wildcard inclusion used to create personal sites does not exist. at Microsoft.Office.Server.UserProfiles.MySiteInstantiationManager.&lt;&gt;c__DisplayClass2c.&lt;CreateSite&gt;b__28() at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param) at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode) at Microsoft.Office.Server.UserProfiles.MySiteInstantiationManager.CreateSite(String strSiteRelative, String strSiteFullUrl, Int32 overrideCompatLevel, Int32 lcid, SPContentDatabase contentDatabase)</strong></span><span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">Data</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">EventData</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
</div>
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">Event</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
<div></div>
<div class="e">

<span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">Event</span></span><span class="ns"><span style="color: #ff0000"> xmlns</span></span><span class="m"><span style="color: #0000ff">="</span></span><b class="ns"><span style="color: #ff0000">schemas.microsoft.com/win/2004/08/events/event</span></b><span style="color: #0000ff"><span class="m">"</span><span class="m">&gt;</span></span>
<div>

<strong>-</strong> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">System</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">Provider</span></span> <span class="t"><span style="color: #990000">Name</span></span><span class="m"><span style="color: #0000ff">="</span></span><b>Microsoft-SharePoint Products-SharePoint Server</b><span class="m"><span style="color: #0000ff">"</span></span><span class="t"><span style="color: #990000"> Guid</span></span><span class="m"><span style="color: #0000ff">="</span></span><b>{C33B4F2A-64E9-4B39-BD72-F0C2F27A619A}</b><span style="color: #0000ff"><span class="m">"</span><span class="m"> /&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">EventID</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span><span class="tx"><strong>8100</strong></span><span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">EventID</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">Version</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span><span class="tx"><strong>16</strong></span><span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">Version</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">Level</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span><span class="tx"><strong>2</strong></span><span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">Level</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">Task</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span><span class="tx"><strong>35</strong></span><span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">Task</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">Opcode</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span><span class="tx"><strong>0</strong></span><span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">Opcode</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">Keywords</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span><span class="tx"><strong>0x4000000000000000</strong></span><span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">Keywords</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">TimeCreated</span></span> <span class="t"><span style="color: #990000">SystemTime</span></span><span class="m"><span style="color: #0000ff">="</span></span><b>2018-04-10T16:53:56.804161400Z</b><span style="color: #0000ff"><span class="m">"</span><span class="m"> /&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">EventRecordID</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span><span class="tx"><strong>358615</strong></span><span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">EventRecordID</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">Correlation</span></span> <span class="t"><span style="color: #990000">ActivityID</span></span><span class="m"><span style="color: #0000ff">="</span></span><b>{742A5C9E-6B76-7076-A542-0086007690C4}</b><span style="color: #0000ff"><span class="m">"</span><span class="m"> /&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">Execution</span></span> <span class="t"><span style="color: #990000">ProcessID</span></span><span class="m"><span style="color: #0000ff">="</span></span><b>6868</b><span class="m"><span style="color: #0000ff">"</span></span><span class="t"><span style="color: #990000"> ThreadID</span></span><span class="m"><span style="color: #0000ff">="</span></span><b>4336</b><span style="color: #0000ff"><span class="m">"</span><span class="m"> /&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">Channel</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span><span class="tx"><strong>Application</strong></span><span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">Channel</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">Computer</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span><span class="tx"><strong>spsa2013.contoso.com</strong></span><span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">Computer</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">Security</span></span> <span class="t"><span style="color: #990000">UserID</span></span><span class="m"><span style="color: #0000ff">="</span></span><b>S-1-5-21-2101011316-2865436131-4185517455-1104</b><span style="color: #0000ff"><span class="m">"</span><span class="m"> /&gt;</span></span></div>
</div>
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">System</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
<strong>-</strong> <span class="m"><span style="color: #0000ff">&lt;</span></span><span class="t"><span style="color: #990000">EventData</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span style="color: #990000"><span class="t">Data</span><span class="t"> Name</span></span><span class="m"><span style="color: #0000ff">="</span></span><b>string0</b><span style="color: #0000ff"><span class="m">"</span><span class="m">&gt;</span></span><span class="tx"><strong>CONTOSO\Administrator</strong></span><span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">Data</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span style="color: #990000"><span class="t">Data</span><span class="t"> Name</span></span><span class="m"><span style="color: #0000ff">="</span></span><b>string1</b><span style="color: #0000ff"><span class="m">"</span><span class="m">&gt;</span></span><span class="tx"><strong>742a5c9e-6b76-7076-a542-0086007690c4</strong></span><span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">Data</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span style="color: #990000"><span class="t">Data</span><span class="t"> Name</span></span><span class="m"><span style="color: #0000ff">="</span></span><b>string2</b><span style="color: #0000ff"><span class="m">"</span><span class="m">&gt;</span></span><span class="tx"><strong>0</strong></span><span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">Data</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span style="color: #990000"><span class="t">Data</span><span class="t"> Name</span></span><span class="m"><span style="color: #0000ff">="</span></span><b>string3</b><span style="color: #0000ff"><span class="m">"</span><span class="m">&gt;</span></span><span class="tx"><strong>28cae970-9721-4876-8dfb-e5c049c4a030</strong></span><span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">Data</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
<div class="e">
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;</span></span><span style="color: #990000"><span class="t">Data</span><span class="t"> Name</span></span><span class="m"><span style="color: #0000ff">="</span></span><b>string4</b><span style="color: #0000ff"><span class="m">"</span><span class="m">&gt;</span></span><span class="tx"><strong>Microsoft.Office.Server.UserProfiles.PersonalSiteCreateConfigurationException: A failure was encountered while attempting to create the site, wildcard inclusion used to create personal sites does not exist. at Microsoft.Office.Server.UserProfiles.MySiteInstantiationManager.&lt;&gt;c__DisplayClass2c.&lt;CreateSite&gt;b__28() at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param) at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode) at Microsoft.Office.Server.UserProfiles.MySiteInstantiationManager.CreateSite(String strSiteRelative, String strSiteFullUrl, Int32 overrideCompatLevel, Int32 lcid, SPContentDatabase contentDatabase) at Microsoft.Office.Server.UserProfiles.MySiteInstantiationManager.CreatePersonalSiteWithSQM(SPSite mySiteHost, String mySitePortalUrl, Int32 overrideCompatLevel, Int32 lcid, SPContentDatabase contentDatabase) at Microsoft.Office.Server.UserProfiles.MySiteInstantiationManager.&lt;&gt;c__DisplayClass23.&lt;CreateMySite&gt;b__1f() at Microsoft.Office.Server.UserProfiles.Helpers.RunWithUserProfileIdAsCorrelation(Guid userProfileId, CodeToRunWithCorrelation delegateToRunWithCorrelation) at Microsoft.Office.Server.UserProfiles.MySiteInstantiationManager.CreateMySite(Int32 lcid, SPContentDatabase contentDatabase) at Microsoft.Office.Server.UserProfiles.SiteInstantiationWorkItemJobDefinition.ProcessWorkItemCoreInternal(SiteProvisioningTimerJobContext jobParameters, DateTime timeNow, UserProfile userprofile) at Microsoft.Office.Server.UserProfiles.Helpers.RunWithUserProfileIdAsCorrelation(Guid userProfileId, CodeToRunWithCorrelation delegateToRunWithCorrelation) at Microsoft.Office.Server.UserProfiles.SiteInstantiationWorkItemJobDefinition.ProcessWorkItemCore(SiteProvisioningTimerJobContext jobParameters) at Microsoft.Office.Server.UserProfiles.SiteInstantiationWorkItemJobDefinition.ProcessWorkItem(SiteProvisioningTimerJobContext timerJobCtx)</strong></span><span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">Data</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
</div>
<div><span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">EventData</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span></div>
<span class="b"><strong><span style="color: #ff0000;font-family: Courier New"> </span></strong></span> <span class="m"><span style="color: #0000ff">&lt;/</span></span><span class="t"><span style="color: #990000">Event</span></span><span class="m"><span style="color: #0000ff">&gt;</span></span>

</div>
</div>]]></content:encoded>
    </item>
    <item>
      <title>Don't filter out your Farm and Object Cache accounts in SharePoint's People Picker</title>
      <link>https://docs.microsoft.com/archive/blogs/dwilborn/dont-filter-out-your-farm-and-object-cache-accounts-in-sharepoints-people-picker</link>
      <pubDate>Mon, 02 Apr 2018 15:20:16 GMT</pubDate>
      <dc:creator><![CDATA[David W - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/dwilborn/?p=25</guid>
      <description><![CDATA[I often have SharePoint cases where customers don't want their Object Cache accounts or Farm account...]]></description>
      <content:encoded><![CDATA[I often have SharePoint cases where customers don't want their Object Cache accounts or Farm account to show up in the People Picker in SharePoint. While there are a variety of reasons people choose to do this, filtering these accounts out of People Picker is a bad idea.

Internally, SharePoint code uses the People Picker code path for other account resolution purposes. Accounts that are filtered from People Picker won't be found by SharePoint's internal code in these instances.

The most common place I've run into this issue is with SharePoint 2016's Fast Site Collection Creation code. By default, SharePoint 2016 uses Fast Site Collection Creation to speed up the My Site creation process (<a href="https://blogs.technet.microsoft.com/wbaer/2015/08/26/fast-site-collection-creation-in-sharepoint-server-2016-it-preview/">see here for more details</a>). If the Farm Account cannot be found by the People Picker code, you will see a message like the following in the ULS logs:
<blockquote>Error in resolving user. User: 'contoso\farmaccount', ResolverInformation: 'SPActiveDirectoryPrincipalResolver, DomainName: 'contoso.com', DomainIsForest: 'False', DomainLoginName: '', CustomSearchQuery: '', CustomSearchFilter: '(&amp;(objectCategory=Person)(objectClass=User)(!(userAccountControl:1.2.840.113556.1.4.803:=2))(|(employeeID=*)(employeeNumber=*))(|(extensionAttribute12=*)(mail=*)(proxyAddresses=*)))', Timeout: '00:00:30', IncludeDistributionList: 'True''</blockquote>
If the Object Cache accounts (Portal Super User and Portal Super Reader) are filtered from the People Picker, you may experience seemingly random permissions issues with a message similar to the following in the ULS:
<blockquote>User Key aysye Unexpected User key value from token is not a user key so throwing. UserKey: 'i:0#.w|contoso\superreader'</blockquote>
The solution is to allow the accounts to be resolved in the People Picker.

The following PowerShell commands may be used to check the current People Picker settings. You'll want to check the <a href="https://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.administration.sppeoplepickersettings.activedirectorycustomquery.aspx"><strong>ActiveDirectoryCustomQuery</strong> </a>and <a href="https://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.administration.sppeoplepickersettings.activedirectorycustomfilter.aspx"><strong>ActiveDirectoryCustomFilter</strong> </a>properties:
<blockquote>$wa = Get-SPWebApplication <em>&lt;sitename&gt;</em>
$wa.PeoplePickerSettings</blockquote>
<a href="https://docs.microsoft.com/en-us/SharePoint/administration/configure-object-cache-user-accounts">Object Cache accounts </a>may be queried as follows:
<blockquote>$wa = Get-SPWebApplication <em>&lt;sitename&gt;</em>
$wa.Properties["portalsuperuseraccount"]
$wa.Properties["portalsuperreaderaccount"]</blockquote>]]></content:encoded>
    </item>
  </channel>
</rss>