<?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>My SharePoint World! - Nishant Shah</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/nishants/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/nishants/feed.xml</link>
    <description>How-Tos, Thoughts and Experiences with Microsoft SharePoint !</description>
    <lastBuildDate>Mon, 02 Nov 2015 11:25:21 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Migrate to SharePoint Online (O365–SPO) from On-Premise SharePoint or fileshare using new PowerShell migration APIs</title>
      <link>https://docs.microsoft.com/archive/blogs/nishants/using-windows-powershell-cmdlets-for-sharepoint-online-o365spo-migration</link>
      <pubDate>Sat, 18 Jul 2015 21:59:35 GMT</pubDate>
      <dc:creator><![CDATA[Nishant Shah [MSFT]]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/nishants/2015/07/18/using-windows-powershell-cmdlets-for-sharepoint-online-o365spo-migration/</guid>
      <description><![CDATA[&nbsp; **Updated to include SharePoint On-Prem to Office 365 SharePoint Online Scenario Important...]]></description>
      <content:encoded><![CDATA[<ul> <p>&nbsp; <h4><font style="background-color:#f3a447;">**Updated to include SharePoint On-Prem to Office 365 SharePoint Online Scenario</font></h4> <h1><font style="background-color:#ffff00;">Important</font></h1> <ul> <li> <div align="left">This documentation covers features that are currently in preview and not yet finalized for use in production code. </div> </li><li> <div align="left">Replace <strong>&lt;TENANT&gt;</strong> with actual tenant prefix, <strong>&lt;SPOSite&gt;</strong> with SPO Site prefix and <strong>&lt;On-PremSPSite&gt;</strong> with SP On-Prem Site Prefix in all PowerShell cmdlets.</div> </li><li> <div align="left">Triple-click in code box to copy Code / PowerShell cmdlets if they don’t fit on screen!</div></li></ul> <h1>Prerequisites</h1> <ul> <li>Valid Office 365 subscription  </li><li>Valid Microsoft Azure subscription  </li><li>Install SharePoint Online management shell version 16.0.4017.1200 or above from <a href="https://go.microsoft.com/fwlink/?LinkID=617148&amp;clcid=0x409"><strong>here</strong></a>. More details at <a href="https://technet.microsoft.com/en-us/library/fp161372.aspx">https://technet.microsoft.com/en-us/library/fp161372.aspx</a>  </li><li>Run SharePoint Online management shell as Administrator and connect SPO service using the below cmdlet  <div id="codeSnippetWrapper"><pre id="codeSnippet" style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&#39;Courier New&#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:#f4f4f4;">Connect-SPOService -Url <a href="https://&lt;TENANT&gt;-admin.sharepoint.com">https://&lt;TENANT&gt;-admin.sharepoint.com</a> </pre></div></li></ul>
<p>&nbsp;<strong>To keep things simple, lets divide the entire process in few steps:&nbsp;&nbsp; </strong>
<h1><font style="background-color:#cccccc;">Step 1 - Create SPO Migration Package</font></h1>
<h2><font style="background-color:#f3a447;">Step 1a</font> – Create SPO Migration Package from SharePoint On-Prem Content</h2>
<ul>
<li>RDP to a WFE for On Premise SharePoint Server 
</li><li>Open SharePoint Management Shell as administrator 
</li><li>Export the Web / Site Collection using the below cmdlet 
<div id="codeSnippetWrapper"><pre id="codeSnippet" style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&#39;Courier New&#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:#f4f4f4;">Export-SPWeb -Identity <span style="color:#006080;">&quot;https://&lt;On-PremSPSite&gt;&quot;</span> -ItemUrl <span style="color:#006080;">&quot;/OnPremDocLib&quot;</span> -Path <span style="color:#006080;">&quot;C:\SPOnPremExport&quot;</span> -NoFileCompression -IncludeVersions 4</pre></div></li></ul></p></p></ul>
<blockquote>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/SNAGHTMLbcbf2fe8_47E5484C.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/SNAGHTMLbcbf2fe8_5F00_47E5484C.png"><img style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/SNAGHTMLbcbf2fe8_thumb_59C46CCA.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/SNAGHTMLbcbf2fe8_5F00_thumb_5F00_59C46CCA.png" width="644" height="84" alt=" " /></a></p></blockquote>
<ul>
<ul>
<li>
<div><strong>Note</strong>: </div></li></ul>
<ul>
<ol>
<li>
<div>-NoFileCompression is specified so output will be created in a folder and hence -Path is given without .cmp</div>
</li><li>
<div>-ItemUrl parameter has to be a relative path i.e. if absolute URL is <a href="https://SharePoint.contoso.com/DocLib">https://SharePoint.contoso.com/DocLib</a> then –ItemUrl will be just “/DocLib”</div>
</li><li>
<div>At this time, SPO migration pipe is oriented for list and document library content only. Hence, -ItemUrl is required.</div></li></ol>
<li>
<div><strong>More Info</strong>: Export-SPWeb <a title="https://technet.microsoft.com/en-us/library/ff607895.aspx" href="https://technet.microsoft.com/en-us/library/ff607895.aspx">https://technet.microsoft.com/en-us/library/ff607895.aspx</a></div></li></ul>
<ul>
<li>
<div><strong>Copy Data</strong>: Copy the Contents of this folder to the location on machine which has SharePoint Online Management Shell installed. <strong>i.e.</strong> I copied contents from C:\SPOnPremExport from my SharePoint On-Prem Server to C:\MigrationPackages\SPOTemp on my laptop.</div></li></ul></ul>
<blockquote>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/image_61DE29D0.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/image_5F00_61DE29D0.png"><img title="image" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/image_thumb_4C830519.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/image_5F00_thumb_5F00_4C830519.png" width="468" height="344" /></a></p></blockquote>
<ul>
<h2>OR </h2>
<h2><font style="background-color:#9c85c0;">Step 1b</font> – Create SPO Migration Package from a file share</h2>
<ul>
<li>Copy data / files to be migrated to SPO into a local / network folder e.g. \\nishant-lptp\SPOTEMP 
<ul>
<li>Note: Blocked file types for SPO is by default same as <a href="https://technet.microsoft.com/en-us/library/cc262496.aspx">https://technet.microsoft.com/en-us/library/cc262496.aspx</a></li></ul>
</li><li>Create a new migration package using below cmdlet 
<div id="codeSnippetWrapper"><pre id="codeSnippet" style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&#39;Courier New&#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:#f4f4f4;">New-SPOMigrationPackage -SourceFilesPath <span style="color:#006080;">&quot;\\nishant-lptp\SPOTEMP&quot;</span> -OutputPackagePath <span style="color:#006080;">&quot;C:\MigrationPackages\SPOTEMP&quot;</span> -TargetWebUrl <span style="color:#006080;">&quot;https://&lt;SPOSite&gt;.sharepoint.com/&quot;</span> -TargetDocumentLibraryPath <span style="color:#006080;">&quot;SPOMigration&quot;</span></pre><strong></strong></div>
</li><li>
<div><strong>More Info</strong>: New-SPOMigrationPackage <a href="https://technet.microsoft.com/en-us/library/mt143603.aspx">https://technet.microsoft.com/en-us/library/mt143603.aspx </a></div></li></ul>
<p><strong>Note</strong>: 
<ul>
<li>OutputPackagePath folder hierarchy will be created if it doesn’t exist</li></ul>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image001_4CB71CBC.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image001_5F00_4CB71CBC.png"><img title="clip_image001" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="clip_image001" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image001_thumb_630CC201.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image001_5F00_thumb_5F00_630CC201.png" width="644" height="95" /></a> 
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image002_197D7404.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image002_5F00_197D7404.png"><img title="clip_image002" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="clip_image002" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image002_thumb_36F255C1.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image002_5F00_thumb_5F00_36F255C1.png" width="644" height="253" /></a> 
<p>&nbsp; <h1><font style="background-color:#cccccc;">Step 2 - Prepare Final SPO Migration Package</font></h1>
<ul>
<li>Prepare data / files to be migrated using below cmdlet 
</li><li><strong>For </strong><font style="background-color:#f3a447;"><strong>Step 1a</strong> 
<div id="codeSnippetWrapper"><pre id="codeSnippet" style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&#39;Courier New&#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:#f4f4f4;">ConvertTo-SPOMigrationTargetedPackage -SourceFilesPath <span style="color:#006080;">&quot;C:\MigrationPackages\SPOTEMP&quot;</span> -SourcePackagePath <span style="color:#006080;">&quot;C:\MigrationPackages\SPOTEMP&quot;</span> -OutputPackagePath <span style="color:#006080;">&quot;C:\MigrationPackages\SPOMigrationPackage&quot;</span> -TargetWebUrl <span style="color:#006080;">&quot;https://&lt;SPOSite&gt;.sharepoint.com/&quot;</span> -TargetDocumentLibraryPath <span style="color:#006080;">&quot;SPOMigration&quot;</span></pre></div></font></li></ul></p></p></p></p></ul>
<blockquote>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/SNAGHTMLbecfed5_122A1FE9.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/SNAGHTMLbecfed5_5F00_122A1FE9.png"><img title="SNAGHTMLbecfed5" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="SNAGHTMLbecfed5" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/SNAGHTMLbecfed5_thumb_5F5CAA25.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/SNAGHTMLbecfed5_5F00_thumb_5F00_5F5CAA25.png" width="644" height="109" /></a><font style="background-color:#f3a447;"><br /></font></p></blockquote>
<ul>
<ul>
<li><strong>For </strong><font style="background-color:#9c85c0;"><strong>Step1b </strong>
<div id="codeSnippetWrapper"><pre id="codeSnippet" style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&#39;Courier New&#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:#f4f4f4;">ConvertTo-SPOMigrationTargetedPackage -SourceFilesPath <span style="color:#006080;">&quot;\\nishant-lptp\SPOTEMP&quot;</span> -SourcePackagePath <span style="color:#006080;">&quot;C:\MigrationPackages\SPOTEMP&quot;</span> -OutputPackagePath <span style="color:#006080;">&quot;C:\MigrationPackages\SPOMigrationPackage&quot;</span> -TargetWebUrl <span style="color:#006080;">&quot;https://&lt;SPOSite&gt;.sharepoint.com/&quot;</span> -TargetDocumentLibraryPath <span style="color:#006080;">&quot;SPOMigration&quot;</span></pre><br /></div></font>
</li><li>
<div id="codeSnippetWrapper">There are six required parameters to enter (others are optional) </div>
<ol>
<li><strong>TargetwebURL</strong>: points to the destination Web 
</li><li><strong>SourceFilesPath</strong>: points to the you want to migrate 
</li><li><strong>SourcePackagePath</strong>: points to your Temporary package folder 
</li><li><strong>OutputPackagePath</strong>: points to your final package folder 
</li><li><strong>TargetDocumentLibraryPath</strong>: the path to your destination library 
</li><li><strong>Credentials</strong>: SPO credential that has admin rights to the destination site</li></ol>
</li><li><strong>More Info</strong>: ConvertTo-SPOMigrationTargetedPackage - <a href="https://technet.microsoft.com/en-us/library/mt143609.aspx">https://technet.microsoft.com/en-us/library/mt143609.aspx</a> </li></ul>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image003_0A6BB68C.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image003_5F00_0A6BB68C.png"><img title="clip_image003" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="clip_image003" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image003_thumb_608B4256.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image003_5F00_thumb_5F00_608B4256.png" width="490" height="484" /></a> </p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image004_020D0297.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image004_5F00_020D0297.png"><img title="clip_image004" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="clip_image004" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image004_thumb_2AAB6E9E.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image004_5F00_thumb_5F00_2AAB6E9E.png" width="644" height="261" /></a> 
<p>&nbsp; <h1><font style="background-color:#cccccc;">Step 3 - Upload SPO Migration Package to Azure Blob Containers</font></h1>
<ul>
<li>Follow the below steps to get Storage Account Name and two container names inside it. If you already have a storage account, you could use the same 
<ul>
<li>Login to Azure Portal via <a href="https://manage.windowsazure.com">https://manage.windowsazure.com</a> 
</li><li>Browse to Storage &gt; Create a new storage account e.g. <strong>nO365mig</strong> 
</li><li>In newly created storage account create two containers e.g. <strong>migration-files</strong>, <strong>migration-package</strong></li></ul>
</li><li>Prepare to upload the prepared data / files to Azure Blob Containers using below cmdlet 
</li><li><strong>For </strong><font style="background-color:#f3a447;"><strong>Step 1a</strong> 
<div id="codeSnippetWrapper"><pre id="codeSnippet" style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&#39;Courier New&#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:#f4f4f4;">$azurelocations = Set-SPOMigrationPackageAzureSource -SourceFilesPath <span style="color:#006080;">&quot;C:\MigrationPackages\SPOTEMP&quot;</span> -SourcePackagePath <span style="color:#006080;">&quot;C:\MigrationPackages\SPOMigrationPackage&quot;</span> -FileContainerName migration-files -PackageContainerName migration-package -AccountName nO365mig -AccountKey <span style="color:#006080;">&quot;REAPLCE_WITH_YOUR_AZURE_STORAGE_ACCOUNT_ACCESS_KEY&quot;</span></pre><br /></div></font>
</li><li><strong>For </strong><font style="background-color:#9c85c0;"><strong>Step1b </strong>
<div id="codeSnippetWrapper"><pre id="codeSnippet" style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&#39;Courier New&#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:#f4f4f4;">$azurelocations = Set-SPOMigrationPackageAzureSource -SourceFilesPath <span style="color:#006080;">&quot;\\nishant-lptp\SPOTEMP&quot;</span> -SourcePackagePath <span style="color:#006080;">&quot;C:\MigrationPackages\SPOMigrationPackage&quot;</span> -FileContainerName migration-files -PackageContainerName migration-package -AccountName nO365mig -AccountKey <span style="color:#006080;">&quot;REAPLCE_WITH_YOUR_AZURE_STORAGE_ACCOUNT_ACCESS_KEY&quot;</span></pre><br /></div></font>
</li><li>
<div id="codeSnippetWrapper"><strong>More Info</strong>: Set-SPOMigrationPackageAzureSource - <a href="https://technet.microsoft.com/en-us/library/mt143606.aspx">https://technet.microsoft.com/en-us/library/mt143606.aspx</a></div></li></ul>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image005_05440BE1.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image005_5F00_05440BE1.png"><img title="clip_image005" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="clip_image005" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image005_thumb_09BD1D59.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image005_5F00_thumb_5F00_09BD1D59.png" width="644" height="137" /></a> 
<p>&nbsp; <h1><font style="background-color:#cccccc;">Step 4 - Submit Migration Job</font></h1>
<ul>
<li>Submit Migration Job to transfer data <strong>from Source &lt;to&gt; Azure Blob Containers &lt;to&gt; SPO Site Collection </strong>using below cmdlet 
<div id="codeSnippetWrapper"><pre id="codeSnippet" style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&#39;Courier New&#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:#f4f4f4;">Submit-SPOMigrationJob -TargetWebUrl <span style="color:#006080;">&quot;https://&lt;SPOSite&gt;.sharepoint.com/&quot;</span> -MigrationPackageAzureLocations $azurelocations</pre></div>
</li><li>Above cmdlet is generic and applies to both <font style="background-color:#f3a447;">Step1a</font> and <font style="background-color:#9c85c0;">Step1b</font> 
</li><li><strong>More Info</strong>: Submit-SPOMigrationJob - <a href="https://technet.microsoft.com/en-us/library/mt143605.aspx">https://technet.microsoft.com/en-us/library/mt143605.aspx</a></li></ul>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image006_520A6328.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image006_5F00_520A6328.png"><img title="clip_image006" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="clip_image006" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image006_thumb_4191F22D.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image006_5F00_thumb_5F00_4191F22D.png" width="644" height="121" /></a> 
<p>&nbsp; <h1><font style="background-color:#cccccc;">Step 5 (Optional) - Check Migration Job Status</font></h1>
<ul>
<li>Check migration job (to transfer data from Azure Blob Containers to SPO Site Collection) status using below cmdlet 
<div id="codeSnippetWrapper"><pre id="codeSnippet" style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&#39;Courier New&#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:#f4f4f4;">Get-SPOMigrationJobStatus -TargetWebUrl <span style="color:#006080;"><a href="https://&lt;SPOSite&gt;.sharepoint.com/">https://&lt;SPOSite&gt;.sharepoint.com/</a></span></pre>&nbsp;</div></li></ul>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image007_65B9DD6D.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image007_5F00_65B9DD6D.png"><img title="clip_image007" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="clip_image007" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image007_thumb_032EBF2B.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image007_5F00_thumb_5F00_032EBF2B.png" width="644" height="224" /></a> 
<p><strong><font style="background-color:#f3a447;">Step 1a</font></strong> 
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/image_403C1DF6.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/image_5F00_403C1DF6.png"><img title="image" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/image_thumb_1AD4BB39.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/image_5F00_thumb_5F00_1AD4BB39.png" width="644" height="301" /></a> 
<p><strong><font style="background-color:#809ec2;">Step 1b</font></strong> 
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image008_0DEEA731.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image008_5F00_0DEEA731.png"><img title="clip_image008" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="clip_image008" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image008_thumb_78FFB56E.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image008_5F00_thumb_5F00_78FFB56E.png" width="644" height="455" /></a> 
<p>&nbsp; <h1><font style="background-color:#cccccc;">Step 6 (Optional) - Remove Migration Job</font></h1>
<ul>
<li>In case if the migration job is stuck or if it needs to be removed for any reason you could use the below cmdlet (Note: This will work only if the job is not already completed) 
<div id="codeSnippetWrapper"><pre id="codeSnippet" style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&#39;Courier New&#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:#f4f4f4;">Remove-SPOMigrationJob -JobId e79c5022-3aa1-446c-a8e6-2431063706fa -TargetWebUrl <span style="color:#006080;"><a href="https://&lt;SPOSite&gt;.sharepoint.com/">https://&lt;SPOSite&gt;.sharepoint.com/</a></span></pre></div>
</li><li><strong>More Info</strong>: Remove-SPOMigrationJob - <a href="https://technet.microsoft.com/en-us/library/mt143607.aspx">https://technet.microsoft.com/en-us/library/mt143607.aspx</a></li></ul></p></p></p></p></p></p></p></p></p></p></p></p></ul>]]></content:encoded>
    </item>
    <item>
      <title>The mysterious issue of disappeared green ticks in OneDrive for Business</title>
      <link>https://docs.microsoft.com/archive/blogs/nishants/the-mysterious-issue-of-disappeared-green-ticks-in-onedrive-for-business</link>
      <pubDate>Mon, 19 Jan 2015 22:41:01 GMT</pubDate>
      <dc:creator><![CDATA[Nishant Shah]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/nishants/2015/01/19/the-mysterious-issue-of-disappeared-green-ticks-in-onedrive-for-business/</guid>
      <description><![CDATA[I use “OneDrive” for storing any personal documents / pictures and “OneDrive for Business” for...]]></description>
      <content:encoded><![CDATA[<p>I use “OneDrive” for storing any personal documents / pictures and “OneDrive for Business” for storing any work related / official documents. </p> <p>So, I ran into an issue where the <font style="background-color:#ffff00;">tick marks just disappeared</font> from OneDrive for Business. New and modified files would <font style="background-color:#00ff00;">actually sync just fine</font> however it wouldn’t show any notification tick marks (Green for InSync / Twin cyclic arrows for SyncInProgress / Red for ErrorConflict). </p> <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/Prob_5DB227E5.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/Prob_5F00_5DB227E5.jpg"><img title="Prob" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="Prob" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/Prob_thumb_0F40262C.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/Prob_5F00_thumb_5F00_0F40262C.jpg" width="386" height="195" /></a></p> <p>After running a quite a few quick / online repairs (Office 365 ProPlus) of Office 2013, clearing cache etc I found a way to fix this.</p> <ol> <li>Shut down OneDrive for Business by choosing Exit from system tray icon. Sometimes it re-spawns so do ensure there is no instance of GROOVE.EXE in Task Manager &gt; Details  </li><li>Download Autoruns from <a title="https://technet.microsoft.com/en-us/sysinternals/bb963902.aspx" href="https://technet.microsoft.com/en-us/sysinternals/bb963902.aspx">https://technet.microsoft.com/en-us/sysinternals/bb963902.aspx</a> and run autoruns.exe as Administrator  </li><li>Once the scanning completes, search for “ShellIconOverlayIdentifiers” and toggle two sets of 3 entries for OneDrive for Business (screenshot below). The intent is to ensure both sets of 3 entries for OneDrive for Business are in checked state.  <ul> <li><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/Autoruns_5316EB34.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/Autoruns_5F00_5316EB34.jpg"><img title="Autoruns" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="Autoruns" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/Autoruns_thumb_322899EF.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/Autoruns_5F00_thumb_5F00_322899EF.jpg" width="598" height="213" /></a></li></ul> </li><li>Take a backup of contents of below folders (these are used for groove and office cache respectively) and empty these folders  <ul> <li>C:\Users\&lt;USERNAME&gt;\AppData\Local\Microsoft\Office\Spw  </li><li>C:\Users\&lt;USERNAME&gt;\AppData\Local\Microsoft\Office\15.0\OfficeFileCache</li></ul> </li><li>Go to Control Panel &gt; Programs and Features (appwiz.cpl) and run a Quick Repair of Office 365 ProPlus  </li><li>Reboot!</li></ol> <p>These steps fixed the issue for me and I was glad to have my sync notification icons back!</p> <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/Fixed_711CAB3B.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/Fixed_5F00_711CAB3B.jpg"><img title="Fixed" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="Fixed" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/Fixed_thumb_02FBCFBA.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/Fixed_5F00_thumb_5F00_02FBCFBA.jpg" width="398" height="195" /></a></p>]]></content:encoded>
    </item>
    <item>
      <title>How to host an existing on-prem SharePoint 2013 virtual machine environment onto Microsoft Azure IaaS step-by-step</title>
      <link>https://docs.microsoft.com/archive/blogs/nishants/how-to-host-an-existing-on-prem-sharepoint-2013-virtual-machine-environment-onto-microsoft-azure-iaas-step-by-step</link>
      <pubDate>Mon, 11 Aug 2014 03:40:00 GMT</pubDate>
      <dc:creator><![CDATA[Nishant Shah]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/nishants/2014/08/11/how-to-host-an-existing-on-prem-sharepoint-2013-virtual-machine-environment-onto-microsoft-azure-iaas-step-by-step/</guid>
      <description><![CDATA[I have a functional, on premise SharePoint 2013 Test / Dev environment. I now want to host this...]]></description>
      <content:encoded><![CDATA[<p>I have a functional, on premise SharePoint 2013 Test / Dev environment. I now want to host this environment at Microsoft Azure and take advantage of features Microsoft Azure IaaS (Infrastructure as a Service) has to offer. Here&#39;s how to go about it -</p>
<p><b><span style="text-decoration:underline;">Prerequisite</span></b>: You&#39;ll need an active Microsoft Azure subscription &gt; Verify by browsing to <a href="https://manage.windowsazure.com/">https://manage.windowsazure.com/</a> (or new portal at <a href="https://portal.azure.com/">https://portal.azure.com/</a>) and sign-in using your Windows Live ID associated with Microsoft Azure subscription.</p>
<p>1. Create a Virtual Network &gt; Give it a name and choose the region &gt; Leave the DNS Server blank for now, we&#39;ll come back for it &gt; Choose IP address range (Class A / B /C) and or add subnets as needed</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image002_07AE7237.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image002_5F00_07AE7237.jpg"><img width="532" height="232" title="clip_image002" style="background-image:none;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-width:0px;" alt="clip_image002" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image002_thumb_1CA45465.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image002_5F00_thumb_5F00_1CA45465.jpg" border="0" /></a></p>
<p>2. (Optional) Download and Install &quot;Microsoft Online Services Sign-in Assistant&quot; from <a href="https://go.microsoft.com/fwlink/?LinkId=221500&amp;clcid=0x409">https://go.microsoft.com/fwlink/?LinkId=221500&amp;clcid=0x409</a></p>
<p>3. Download and Install &quot;Windows Azure PowerShell&quot; from <a href="https://go.microsoft.com/?linkid=9811175&amp;clcid=0x409">https://go.microsoft.com/?linkid=9811175&amp;clcid=0x409</a></p>
<p>Note: .NET Framework 4.5 is a prerequisite to &quot;Windows Azure PowerShell&quot; so if not already installed, Web Platform Installer will download and install it.</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a. Documentation: <a href="https://azure.microsoft.com/en-us/documentation/articles/install-configure-powershell/">https://azure.microsoft.com/en-us/documentation/articles/install-configure-powershell/</a></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; b. Script Center: <a href="https://azure.microsoft.com/en-us/documentation/scripts/">https://azure.microsoft.com/en-us/documentation/scripts/</a></p>
<p>4. Find out your Microsoft Azure Storage account URL and note it down</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image0034_69D6DEA1.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image0034_5F00_69D6DEA1.png"><img width="366" height="221" style="background-image:none;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-width:0px;" alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image0034_thumb_5B2EC36D.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image0034_5F00_thumb_5F00_5B2EC36D.png" border="0" /></a></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image005_0F657D65.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image005_5F00_0F657D65.jpg"><img width="370" height="174" title="clip_image005" style="background-image:none;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-width:0px;" alt="clip_image005" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image005_thumb_43300467.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image005_5F00_thumb_5F00_43300467.jpg" border="0" /></a></p>
<p>5. Locate your local VHD and note down the local path</p>
<p>6. Run &quot;Windows Azure PowerShell&quot; as Administrator</p>
<p>7. Run the below PowerShell command, this will open a browser window, sign in again if needed and it will download a file e.g. &lt;SubScriptionName&gt;-&lt;Date&gt;-credentials.publishsettings &gt; Save this file locally</p>
<p><b>Get-AzurePublishSettingsFile</b></p>
<p>8. Run the below PowerShell command to Import the publishSettings file</p>
<p><b>Import-AzurePublishSettingsFile</b><b> </b><b>-PublishSettingsFile</b><b> </b><b>&quot;C:\&lt;SubScriptionName&gt;-&lt;DownloadDate&gt;-credentials.publishsettings&quot;</b></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image007_721546FC.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image007_5F00_721546FC.jpg"><img width="724" height="40" title="clip_image007" style="background-image:none;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-width:0px;" alt="clip_image007" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image007_thumb_5AEC5D2F.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image007_5F00_thumb_5F00_5AEC5D2F.jpg" border="0" /></a></p>
<p>9. Type the below PowerShell command to verify the PowerShell connection to your Microsoft Azure Subscription</p>
<p><b>Get-AzureSubscription</b></p>
<p>10. Run the below PowerShell command to upload the VHD to Microsoft Azure storage</p>
<p><b>Add-AzureVhd</b><b> </b><b>-Destination</b><b> </b><b>&quot;</b><a href="https://%3cAzureStorageAccountPath%3e/VHDName.vhd"><b>https://&lt;AzureStorageAccountPath&gt;/VHDName.vhd</b></a><b>&quot;</b><b> </b><b>-LocalFilePath</b><b> </b><b>&quot;&lt;LocalVHDPath&gt;\VHDName.vhd&quot; </b></p>
<p>It will first calculate MD5 hash of the VHD and then it will upload the VHD</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image0084_7A3194B3.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image0084_5F00_7A3194B3.png"><img width="713" height="106" style="background-image:none;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-width:0px;" alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image0084_thumb_2D8FE8C1.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image0084_5F00_thumb_5F00_2D8FE8C1.png" border="0" /></a></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image0094_6EC082C9.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image0094_5F00_6EC082C9.png"><img width="714" height="113" style="background-image:none;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-width:0px;" alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image0094_thumb_228B09CC.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image0094_5F00_thumb_5F00_228B09CC.png" border="0" /></a></p>
<p>11. Browse to Microsoft Azure Management Portal <a href="https://manage.windowsazure.com/">https://manage.windowsazure.com/</a></p>
<p>12. You could verify the VHD shows up in Storage by clicking on Storage &gt; Select storage &gt; Containers &gt; Select appropriate container</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image0104_5D089A51.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image0104_5F00_5D089A51.png"><img width="725" height="25" style="background-image:none;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-width:0px;" alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image0104_thumb_3328261C.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image0104_5F00_thumb_5F00_3328261C.png" border="0" /></a></p>
<p>13. Create a Disk from VHD by clicking on Virtual Machines &gt; Disks &gt; Create &gt; Select the appropriate VHD and give it a name &gt; Put a check mark on &quot;This VHD contains an operating system&quot; and choose Windows as the OS family &gt; It will start creating a disk and should complete in a minute or so</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image0114_52D99095.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image0114_5F00_52D99095.png"><img width="384" height="166" style="background-image:none;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-width:0px;" alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image0114_thumb_68C302E5.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image0114_5F00_thumb_5F00_68C302E5.png" border="0" /></a></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image0124_561099DF.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image0124_5F00_561099DF.png"><img width="267" height="230" style="background-image:none;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-width:0px;" alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image0124_thumb_47D4B1A0.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image0124_5F00_thumb_5F00_47D4B1A0.png" border="0" /></a></p>
<p>14. Now create a VM by clicking on Virtual Machines &gt; New &gt; Compute &gt; Virtual Machine &gt; From Gallery &gt; Choose My Disks &gt; Choose the appropriate disk &gt; Click next</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image0134_24A746EE.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image0134_5F00_24A746EE.png"><img width="472" height="199" style="background-image:none;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-width:0px;" alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image0134_thumb_1D1E6832.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image0134_5F00_thumb_5F00_1D1E6832.png" border="0" /></a></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image015_3C639FB6.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image015_5F00_3C639FB6.jpg"><img width="460" height="259" title="clip_image015" style="background-image:none;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-width:0px;" alt="clip_image015" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image015_thumb_625BE0BD.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image015_5F00_thumb_5F00_625BE0BD.jpg" border="0" /></a></p>
<p>15. Provide VM name &gt; Choose Size as appropriate &gt; Click next &gt; Choose to create a new cloud service and sure cloud service name is not duplicate (green tick) &gt; Choose Network and subnet as designed in first step &gt; Expose additional end points if needed &gt; Finish the wizard &gt; This should complete in a few minutes</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image017_16929AB5.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image017_5F00_16929AB5.jpg"><img width="340" height="334" title="clip_image017" style="background-image:none;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-width:0px;" alt="clip_image017" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image017_thumb_5EE27135.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image017_5F00_thumb_5F00_5EE27135.jpg" border="0" /></a></p>
<p>16. (Optional unless you have your own DNS Server / DC) Click on Networks &gt; Select your network &gt; Note down IP address of DNS Server/ Domain controller machine &gt; Click configure and provide DNS Server hostname and IP address &gt; Click Save</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image018_7E27A8B9.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image018_5F00_7E27A8B9.png"><img width="318" height="278" title="clip_image018" style="background-image:none;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-width:0px;" alt="clip_image018" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image018_thumb_5AFA3E07.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image018_5F00_thumb_5F00_5AFA3E07.png" border="0" /></a></p>
<p>17. Once ready, you can click on Connect to RDP to the VM</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image019_25840C93.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image019_5F00_25840C93.png"><img width="396" height="166" title="clip_image019" style="background-image:none;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-width:0px;" alt="clip_image019" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image019_thumb_40BEF645.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image019_5F00_thumb_5F00_40BEF645.png" border="0" /></a></p>
<p><strong>Note</strong>:</p>
<p>I. Since the Network Adapter will change, you&#39;ll need to re-assign the old IP addresses for DNS Servers if needed (especially if you have your own ADDS running on Microsoft Azure too). Otherwise name resolution and hence other services may fail.</p>
<p>II. Guest Windows OS may require re-activation in some cases.</p>
<p>III. It is possible to have simultaneous uploads for different VHDs to Microsoft Azure from different local machines.</p>
<p>&middot; In case if you wish to download the VHD again from Microsoft Azure -</p>
<p>a. From UI: You can browse to Storage &gt; Select storage &gt; Containers &gt; Select appropriate container &gt; Choose VHD &gt; Download.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image020_18AED7D7.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image020_5F00_18AED7D7.png"><img width="337" height="205" title="clip_image020" style="background-image:none;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-width:0px;" alt="clip_image020" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/metablogapi/clip_image020_thumb_0A72EF98.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07-metablogapi/clip_5F00_image020_5F00_thumb_5F00_0A72EF98.png" border="0" /></a></p>
<p>II. Using PowerShell: You could use the following PowerShell command to download the VHD from Microsoft Azure.</p>
<p><b>Save-AzureVhd</b><b> </b><b>-Source</b><b> </b><b>&quot;</b><a href="https://%3cAzureStorageAccountPath%3e/VHDName.vhd"><b>https://&lt;AzureStorageAccountPath&gt;/VHDName.vhd</b></a><b>&quot;</b><b> </b><b>-LocalFilePath</b><b> </b><b>&quot;&lt;LocalVHDPath&gt;\VHDName.vhd&quot;</b></p>]]></content:encoded>
    </item>
    <item>
      <title>White Paper: Data Collection Process for SharePoint</title>
      <link>https://docs.microsoft.com/archive/blogs/nishants/white-paper-data-collection-process-for-sharepoint</link>
      <pubDate>Tue, 08 Jul 2014 23:24:20 GMT</pubDate>
      <dc:creator><![CDATA[Nishant Shah]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/nishants/2014/07/08/white-paper-data-collection-process-for-sharepoint/</guid>
      <description><![CDATA[Understanding the data-collection process in SharePoint: This white paper describes how to configure...]]></description>
      <content:encoded><![CDATA[<p><font size="2">Understanding the data-collection process in SharePoint: This white paper describes how to configure and collect various types of logs for troubleshooting issues that affect Microsoft SharePoint.</font> <p><strong><font size="2">Download: </font></strong><a title="https://www.microsoft.com/en-us/download/details.aspx?id=43416" href="https://www.microsoft.com/en-us/download/details.aspx?id=43416"><strong><font size="2">https://www.microsoft.com/en-us/download/details.aspx?id=43416</font></strong></a></p></p>
]]></content:encoded>
    </item>
    <item>
      <title>Detect and Repair Content DB orphans / Security Corruption (Missing ScopeID) in a SharePoint 2010 / 2013 Farm using Windows PowerShell (Updated!)</title>
      <link>https://docs.microsoft.com/archive/blogs/nishants/detect-and-repair-content-db-orphans-security-corruption-missing-scopeid-in-a-sharepoint-2010-2013-farm-using-windows-powershell-updated</link>
      <pubDate>Sun, 23 Mar 2014 01:07:55 GMT</pubDate>
      <dc:creator><![CDATA[Nishant Shah]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/nishants/2014/03/24/detect-and-repair-content-db-orphans-security-corruption-missing-scopeid-in-a-sharepoint-2010-2013-farm-using-windows-powershell-updated/</guid>
      <description><![CDATA[We have come across issues like unable to access / unable to delete / unable to change permissions /...]]></description>
      <content:encoded><![CDATA[<p><span style="font-size:x-small;"><span style="font-size:small;">We have come across issues like unable to access / unable to delete / unable to change permissions / unable to access version history for a document or library / list due to Content DB orphans OR security corruption (Missing ScopeID). You may see error similar to below in ULS logs.</span></span></p>
<blockquote>
<p><em><span style="font-size:xx-small;"><span style="font-size:small;">&lt;Date Time&gt; w3wp.exe (PID) &lt;TID&gt; SharePoint Foundation General 8kh7 High The URL &#39;DocumentLibrary/DocumentName.docx&#39; is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web. &lt;Correlation ID&gt;</span></span></em></p>
<p><em><span style="font-size:xx-small;"><span style="font-size:small;">&lt;Date Time&gt; w3wp.exe (PID) &lt;TID&gt; SharePoint Foundation General 8nca Verbose Application error when access /_layouts/Versions.aspx, Error=The URL &#39;DocumentLibrary/DocumentName.docx&#39; is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web. at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileVersions(String bstrWebUrl, String bstrFileUrl, Byte level, Object&amp; pvarVersions, UInt32&amp; pdwcVersions) at Microsoft.SharePoint.Library.SPRequest.GetFileVersions(String bstrWebUrl, String bstrFileUrl, Byte level, Object&amp; pvarVersions, UInt32&amp; pdwcVersions) &lt;Correlation ID&gt;</span></span></em></p>
<p><em><span style="font-size:xx-small;"><span style="font-size:small;">&lt;Date Time&gt; w3wp.exe (PID) &lt;TID&gt; SharePoint Foundation Runtime tkau Unexpected System.Runtime.InteropServices.COMException: The URL &#39;DocumentLibrary/DocumentName.docx&#39; is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web. at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileVersions(String bstrWebUrl, String bstrFileUrl, Byte level, Object&amp; pvarVersions, UInt32&amp; pdwcVersions) at Microsoft.SharePoint.Library.SPRequest.GetFileVersions(String bstrWebUrl, String bstrFileUrl, Byte level, Object&amp; pvarVersions, UInt32&amp; pdwcVersions) &lt;Correlation ID&gt;</span></span></em></p>
</blockquote>
<p><span style="font-size:x-small;"><span style="font-size:small;">Good thing is, Content DB orphans / Security Corruption (Missing ScopeID) could be detected using stsadm -o databaserepair or using a PowerShell script such as below for SharePoint 2010 /2013 Farm.</span></span></p>
<p><span style="font-size:x-small;"><span style="font-size:small;">Note:</span></span></p>
<ol>
<li><span style="font-size:x-small;"><span style="font-size:small;">Please take farm / Content DB backup before you attempt to use this script. I or Microsoft are not responsible for any damages due to wrong usage of the script!</span></span></li>
<li><span style="font-size:x-small;"><span style="font-size:small;">Script runs at Farm level, enumerates thru each Content DB so script could take some time to complete if there are many Content DBs / large farm.</span></span></li>
<li><span style="font-size:x-small;"><span style="font-size:small;">Script is Read-Only (just detects orphans &ndash; if any).</span></span></li>
</ol>
<ul>
<li><span style="font-size:x-small;background-color:#ffff00;"><span style="font-size:small;">IMPORTANT: Script can be changed to remove orphans by setting bool DeleteCorruption to $true. I strongly suggest to use this script initially only for detection and enable DeleteCorruption flag only after ensuring working backup of affected&nbsp;Content DBs / entire&nbsp;farm (if required).</span></span></li>
</ul>
<ul>
<li><span style="font-size:x-small;"><span style="font-size:small;">More Info on SPContentDatabase.Repair method </span></span><a href="https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spcontentdatabase.repair.aspx"><span style="font-size:x-small;"><span style="font-size:small;">https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spcontentdatabase.repair.aspx</span></span></a><span style="font-size:small;"> </span></li>
<li><span style="font-size:x-small;"><span style="font-size:small;">More Info on stsadm -o databaserepair command </span></span><a href="https://technet.microsoft.com/en-us/library/cc263282.aspx"><span style="font-size:x-small;"><span style="font-size:small;">https://technet.microsoft.com/en-us/library/cc263282.aspx</span></span></a></li>
</ul>
<div id="codeSnippetWrapper" style="overflow:auto;cursor:text;font-size:8pt;font-family:&#39;Courier New&#39;, courier, monospace;width:97.5%;direction:ltr;text-align:left;margin:20px 0px 10px;line-height:12pt;background-color:#f4f4f4;border:silver 1px solid;padding:4px;">
<div id="codeSnippet" style="overflow:visible;font-size:8pt;font-family:&#39;Courier New&#39;, courier, monospace;width:100%;color:black;direction:ltr;text-align:left;line-height:12pt;background-color:#f4f4f4;border-style:none;padding:0px;">
<pre style="overflow:visible;font-size:8pt;font-family:&#39;Courier New&#39;, courier, monospace;width:100%;color:black;direction:ltr;text-align:left;margin:0em;line-height:12pt;background-color:white;border-style:none;padding:0px;"><span style="color:#0000ff;">if</span> ((Get-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) <span style="color:#cc6633;">-eq</span> $null ) </pre>
<!--CRLF-->
<pre style="overflow:visible;font-size:8pt;font-family:&#39;Courier New&#39;, courier, monospace;width:100%;color:black;direction:ltr;text-align:left;margin:0em;line-height:12pt;background-color:#f4f4f4;border-style:none;padding:0px;">{Add-PSSnapin Microsoft.SharePoint.Powershell}</pre>
<!--CRLF-->
<pre style="overflow:visible;font-size:8pt;font-family:&#39;Courier New&#39;, courier, monospace;width:100%;color:black;direction:ltr;text-align:left;margin:0em;line-height:12pt;background-color:white;border-style:none;padding:0px;">&nbsp;</pre>
<!--CRLF-->
<pre style="overflow:visible;font-size:8pt;font-family:&#39;Courier New&#39;, courier, monospace;width:100%;color:black;direction:ltr;text-align:left;margin:0em;line-height:12pt;background-color:#f4f4f4;border-style:none;padding:0px;">$CDBs = Get-SPContentDatabase</pre>
<!--CRLF-->
<pre style="overflow:visible;font-size:8pt;font-family:&#39;Courier New&#39;, courier, monospace;width:100%;color:black;direction:ltr;text-align:left;margin:0em;line-height:12pt;background-color:white;border-style:none;padding:0px;">ForEach ($CDB <span style="color:#0000ff;">in</span> $CDBs)</pre>
<!--CRLF-->
<pre style="overflow:visible;font-size:8pt;font-family:&#39;Courier New&#39;, courier, monospace;width:100%;color:black;direction:ltr;text-align:left;margin:0em;line-height:12pt;background-color:#f4f4f4;border-style:none;padding:0px;">{</pre>
<!--CRLF-->
<pre style="overflow:visible;font-size:8pt;font-family:&#39;Courier New&#39;, courier, monospace;width:100%;color:black;direction:ltr;text-align:left;margin:0em;line-height:12pt;background-color:white;border-style:none;padding:0px;">    Write-Host <span style="color:#006080;">&quot;Detecting Orphans for &quot;</span> $CDB.Name</pre>
<!--CRLF-->
<pre style="overflow:visible;font-size:8pt;font-family:&#39;Courier New&#39;, courier, monospace;width:100%;color:black;direction:ltr;text-align:left;margin:0em;line-height:12pt;background-color:#f4f4f4;border-style:none;padding:0px;">    $CDB.Repair($false)</pre>
<!--CRLF-->
<pre style="overflow:visible;font-size:8pt;font-family:&#39;Courier New&#39;, courier, monospace;width:100%;color:black;direction:ltr;text-align:left;margin:0em;line-height:12pt;background-color:white;border-style:none;padding:0px;">}</pre>
<!--CRLF--></div>
</div>]]></content:encoded>
    </item>
    <item>
      <title>Total number of list items in a SharePoint Web Application</title>
      <link>https://docs.microsoft.com/archive/blogs/nishants/total-number-of-list-items-in-a-sharepoint-web-application</link>
      <pubDate>Fri, 04 May 2012 08:58:00 GMT</pubDate>
      <dc:creator><![CDATA[Nishant Shah]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/nishants/2012/05/04/total-number-of-list-items-in-a-sharepoint-web-application/</guid>
      <description><![CDATA[Ever wondered, how many list items you have in a Web Application?You can use this Windows PowerShell...]]></description>
      <content:encoded><![CDATA[<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">Ever wondered, how many list items you have in a Web Application?<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">You can use this Windows PowerShell script to know the total number of list items in a SharePoint Web Application. You can tweak the recursion to get list item details for subsite o for site collection level...</p><p style="margin: 0in; font-family: Calibri; font-size: 11pt;">&nbsp;</p><p style="margin: 0in; font-family: Calibri; font-size: 11pt;">Below is the sample script.</p><p style="margin: 0in; font-family: Calibri; font-size: 11pt;">&nbsp;</p><p style="margin: 0in; font-family: Calibri; font-size: 11pt;">if ( (Get-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null ) <br>&nbsp;{Add-PSSnapin Microsoft.SharePoint.Powershell}<br>&nbsp;<br>$SPWebApp = Get-SPWebApplication("<a href="https://intranet.contoso.com">https://intranet.contoso.com</a>")<br>&nbsp;<br>$i=0<br>foreach ($SPSite in $SPWebApp.Sites)<br>{<br>&nbsp;&nbsp;&nbsp; Write-Host "Going thru Site Collection" $SPSite.Title<br>&nbsp;&nbsp;&nbsp; foreach ($SPWeb in $SPSite.AllWebs)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Write-Host "Going thru Web" $SPWeb.Title<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach ($SPList in $SPWeb.Lists)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Write-Host "Going thru List" $SPList.Title "which has" $SPList.ItemCount "item(s)"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach ($SPListItem in $SPList.Items)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Write-Host "Going thru Item" $SPListItem.Name<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $i=$i+1 <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $SPWeb.dispose() <br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; $SPSite.dispose()<br>}<br>Write-Host "Total item count" $i<br>&nbsp;</p></p>
]]></content:encoded>
    </item>
    <item>
      <title>How to sync picture from SharePoint to Active Directory and hence to Outlook and Lync</title>
      <link>https://docs.microsoft.com/archive/blogs/nishants/how-to-sync-picture-from-sharepoint-to-active-directory-and-hence-to-outlook-and-lync</link>
      <pubDate>Tue, 21 Feb 2012 03:03:00 GMT</pubDate>
      <dc:creator><![CDATA[Nishant Shah]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/nishants/2012/02/21/how-to-sync-picture-from-sharepoint-to-active-directory-and-hence-to-outlook-and-lync/</guid>
      <description><![CDATA[Lets talk about how we can get a picture in user's My Site to be synchronized with Active Directory...]]></description>
      <content:encoded><![CDATA[<p><span style="font-size: small;"><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">Lets talk about how we can get a picture in user's My Site to be synchronized with Active Directory (AD) and hence other applications like Outlook or Lync (</span></span><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">formally office communicator<span>) can utilize it.</span></span></p>
<p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">So lets get started with assuming - </span></p>
<ol>
<li><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">"User Profile Synchronization Service" is in "Started" state on appropriate SharePoint server</span></li>
<li><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">"Replicate Directory Changes" permission on a domain is present for synchronization account <a href="https://technet.microsoft.com/en-us/library/hh296982.aspx#RDCdomain">https://technet.microsoft.com/en-us/library/hh296982.aspx#RDCdomain</a></span></li>
<li><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">If you will export property values from SharePoint Server to AD DS, the synchronization account must have Create Child Objects (this object and all descendants) and Write All Properties (this object and all descendants) permissions on the organizational unit (OU) that you are synchronizing with. Ref: <a href="https://technet.microsoft.com/en-us/library/ff182925.aspx#permission">https://technet.microsoft.com/en-us/library/ff182925.aspx#permission</a></span></li>
<li><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">You have a functional SharePoint 2010 / SharePoint 2013 environment which is configured to do Profile Synchronization. For more details on this please refer to <a href="https://technet.microsoft.com/en-us/library/ff382639.aspx">https://technet.microsoft.com/en-us/library/ff382639.aspx</a></span></li>
</ol>
<ul>
<li><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">Currently this is how the picture space in Outlook and Lync shows up for our example user Amy Alberts.</span></li>
</ul>
<p style="padding-left: 30px;"><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/5635.1.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07/5635.1.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/5635.1.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07/5635.1.jpg" alt="" width="347" height="353" border="0" /></a></span></p>
<p style="padding-left: 30px;"><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;"><span><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/0385.2.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07/0385.2.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/0385.2.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07/0385.2.jpg" alt="" width="352" height="100" border="0" /></a></span><span>&nbsp;</span><span>&nbsp;</span></span></p>
<ul>
<li><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">Browse to Central Admin &gt; Manage User Properties &gt; Edit the Picture Property</span></li>
</ul>
<p>&nbsp;</p>
<p style="padding-left: 30px;"><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/1464.3.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07/1464.3.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/1464.3.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07/1464.3.jpg" alt="" border="0" /></a></span></p>
<ul>
<li><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">Under Add New Mapping, Choose the Source Data Connection as your AD import connection, attribute as "thumbnailPhoto" and Direction as "Export" and click Add</span></li>
</ul>
<p>&nbsp;</p>
<ul>
<li><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">By doing this you'd see Property Mapping for Synchronization as below, Click OK now to save this property mapping</span></li>
</ul>
<p style="padding-left: 30px;"><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/7433.5.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07/7433.5.jpg" alt="" border="0" /></span></p>
<p>&nbsp;</p>
<ul>
<li><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">Now in Manage User Properties, Picture attribute would show up as below</span></li>
</ul>
<p>&nbsp;</p>
<p style="padding-left: 30px;"><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;"><span>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/0383.6.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07/0383.6.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/0383.6.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07/0383.6.jpg" alt="" border="0" /></a></span><span>&nbsp;</span></span></p>
<ul>
<li><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">Browse to a user's My Site whose picture needs to be updated, click on My Profile &gt; Edit My Profile &gt; Choose Picture &gt; Save and Close</span></li>
</ul>
<p>&nbsp;</p>
<ul>
<li><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">Browse again to User Profile Service Application &gt; Start Profile Synchronization &gt; Start Incremental Synchronization</span></li>
<li><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">There are couple of ways you can verify the picture export</span></li>
<ul>
<li><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">From SharePoint side</span></li>
<ul>
<li><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">Open MIISCLIENT.EXE from C:\Program Files\Microsoft Office Servers\14.0\Synchronization Service\UIShell </span></li>
<li><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">Look at the latest DS_EXPORT phase and click on "Updates" in Export Statistics, this would open the Object Details window</span></li>
<li><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">Choose the user for whom the picture was updated and click on Properties</span></li>
<li><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">You should see a change of type "add" for attribute name "thumbnailPhoto" as below</span></li>
</ul>
</ul>
</ul>
<p>&nbsp;</p>
<p style="padding-left: 120px;"><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/3755.7.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07/3755.7.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/3755.7.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07/3755.7.jpg" alt="" border="0" /></a></span></p>
<p>&nbsp;</p>
<ul>
<ul>
<ul>
<li><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">This indicates SharePoint was successfully able to export the photo</span></li>
</ul>
<li><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">From Active Directory side</span></li>
<ul>
<li><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">Open the tool ADSIEdit.msc</span></li>
<li><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">Connect to the correct domain</span></li>
<li><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">Navigate thru the hierarchy and find the user for whom the picture was updated and open properties&nbsp; of the user so that it would display the attribute editor</span></li>
<li><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">By default he value of attribute "thumbnailPhoto" would be &lt;not set&gt; however after the profile synchronization is completed, you would see a binary value in there as visible in screenshot below<img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/0882.8.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07/0882.8.jpg" alt="" border="0" /></span></li>
</ul>
</ul>
</ul>
<p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">&nbsp;</span></p>
<ul>
<li><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;"><strong>Important</strong>:</span></li>
<ul>
<li><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">Its not supported/recommended to run any operations or make any changes directly using MIISCLIENT.exe. Please rely on SharePoint UI/OM for all your Profile Sync operations.</span></li>
<li><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">ADSIEdit.msc is a very powerful tool and can mess around the Active Directory configuration if not carefully used. If you do any changes using this tool, its irreversible so please be careful. In my example, we are using this tool as READ-ONLY just to confirm the changes made.</span></li>
</ul>
</ul>
<p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">&nbsp;</span></p>
<ul>
<li><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">After giving a few hours and once the AD replication is complete and once Exchange and Lync have picked up these changes (I didn&rsquo;t need to do any manual changes on my Exchange Server 2010 or Lync Serve 2010) this is how the picture space in Outlook and Lync shows up for our example user Amy Alberts.</span></li>
</ul>
<p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/7446.9.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07/7446.9.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/7446.9.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07/7446.9.jpg" alt="" width="345" height="362" border="0" /></a></span></p>
<p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;"><span><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/2112.10.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07/2112.10.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/2112.10.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-07/2112.10.jpg" alt="" width="349" height="115" border="0" /></a></span><span>&nbsp;</span></span></p>
<p>&nbsp;</p>
<p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;"><span>&nbsp;</span><span>I hope this helps you to increase personalization in your organization.</span></span></p>]]></content:encoded>
    </item>
    <item>
      <title>Troubleshooting User Profile Sync Issues in Office SharePoint Server 2007</title>
      <link>https://docs.microsoft.com/archive/blogs/nishants/troubleshooting-user-profile-sync-issues-in-office-sharepoint-server-2007</link>
      <pubDate>Mon, 23 Aug 2010 08:38:00 GMT</pubDate>
      <dc:creator><![CDATA[Nishant Shah]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/nishants/2010/08/23/troubleshooting-user-profile-sync-issues-in-office-sharepoint-server-2007/</guid>
      <description><![CDATA[&nbsp;
In SharePoint Server 2007, we often run into situations where some attributes of a user is...]]></description>
      <content:encoded><![CDATA[<p>&nbsp;</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">In SharePoint Server 2007, we often run into situations where some attributes of a user is updated in Active Directory however the changes don&rsquo;t reflect in SharePoint Sites even after doing Profile Import.</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">Lets take an example of a user "Susan Burk" who gets married and her last name changes to Johnson so her name becomes "Susan Johnson".</p>
<p><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/6320.1.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-76-07/6320.1.jpg" alt="" border="0" /></p>
<p>Active Directory (AD) folks changes the Last Name and Display Name of Susan</p>
<p><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/0434.2.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-76-07/0434.2.jpg" alt="" border="0" /></p>
<p>SharePoint Admin does a full / incremental profile import and we see that the changes have reflected in her User Profile as well.</p>
<p>&nbsp;<img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/8535.3.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-76-07/8535.3.jpg" alt="" border="0" /></p>
<p>&nbsp;However, a week after Susan loges a call with IT Helpdesk stating on the company's Intranet portal, she is still listed as "Susan Burk" and it has not changed to "Susan Johnson".</p>
<p>&nbsp;<img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/2117.4.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-76-07/2117.4.jpg" alt="" border="0" /></p>
<p>&nbsp;</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">SharePoint by default runs "Profile Synchronization" (PROFSYNCH) job every 1 hour and "Quick Profile Synchronization" (SWEEPSYNCH) job every 1 minute which are responsible to sync'ing any changes from Profile Store to SharePoint Sites. So, SharePoint Admin verifies these jobs are in-tact and are running on schedule for the affected web application by going to Central Admin &gt; Timer Job Status and confirms both Profile Sync and Quick Profile Sync jobs have ran within the last hour.</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">So, there are quite a few things which can cause such a scenario.</p>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="disc">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Database is marked as read-only in SQL Server</span></li>
</ul>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="disc">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Database status set to "Offline" at Central Administration &gt; Application Management &gt; Content Databases &gt; Manage Content Database Settings </span></li>
</ul>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="disc">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Site Collection is marked as read-only in Central Administration &gt; Application Management &gt; Site Collection Quotas and Locks</span></li>
</ul>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="disc">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Profile Import is running from a long time</span></li>
</ul>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="disc">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Configuration Cache is stale </span>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="circle">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">'cache.ini' file not updating at </span></li>
</ul>
</li>
</ul>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"><span style="font-weight: bold;">Windows Server 2003</span> - C:\Documents and Settings\All Users\Application Data\Microsoft\SharePoint\Config\&lt;GUID&gt;\cache.ini</p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"><span style="font-weight: bold;">Windows Server 2008 &amp; 2008 R2</span> - C:\ProgramData\Microsoft\SharePoint\Config\&lt;GUID&gt;\cache.ini</p>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="disc">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">The link between Shared Services Provider (SSP) and the web application is broken </span>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="circle">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Due to "Moving" attribute set to 'True' in dbo.SiteSynch table in SharedServices database due to incorrect usage of stsadm -o preparetomovecommand</span></li>
</ul>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="circle">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><a href="https://technet.microsoft.com/en-us/library/cc262122%28office.12%29.aspx"><span style="font-family: Calibri; font-size: 11pt;">https://technet.microsoft.com/en-us/library/cc262122(office.12).aspx</span></a></li>
</ul>
</li>
</ul>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="disc">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">SharePoint site and SSP have not "sync'd" from some time! </span>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="circle">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Try running stsadm -o sync -listolddatabases 5 (where 5 is the number of days since the site and SSP sync</span></li>
</ul>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="circle">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><a href="https://technet.microsoft.com/en-us/library/cc263196%28office.12%29.aspx"><span style="font-family: Calibri; font-size: 11pt;">https://technet.microsoft.com/en-us/library/cc263196(office.12).aspx</span></a></li>
</ul>
</li>
</ul>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="disc">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">User is not active in SharePoint </span>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="circle">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">"tp_IsActive" attribute is 'False' in Content Database's "dbo.UserInfo" table</span></li>
</ul>
</li>
</ul>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="disc">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Web Application is excluded from sync</span></li>
</ul>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">We know its <span style="color: red;">NOT SUPPORTED</span> to make any direct changes / modifications to SharePoint databases (<a href="https://support.microsoft.com/kb/841057">https://support.microsoft.com/kb/841057</a>)</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">Here are the standard troubleshooting steps for the scenarios mentioned above, running all the below steps&nbsp;may / may not be required in every case, so you should identify the problem and&nbsp;apply corrective steps accordingly -&nbsp;&nbsp;</p>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="disc">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Ensure the Content Database is not marked as read-only in SQL Server</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Ensure Site Collection is not marked as read-only at Central Administration &gt; Application Management &gt; Site Collection Quotas and Locks</span></li>
</ul>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="disc">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Profile Sync wont happen it the Profile Import is running, so ensure Profile Import job has successfully completed and you have a import schedule which is not overlapping (and hence profile import is not running all the time)</span></li>
</ul>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="disc">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Clear Configuration Cache on all SharePoint servers one by one by following KB article (</span><a href="https://support.microsoft.com/kb/939308"><span style="font-family: Calibri; font-size: 11pt;">https://support.microsoft.com/kb/939308</span></a><span style="font-family: Calibri; font-size: 11pt;">)</span></li>
</ul>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="disc">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Run the following SQL read-only query against the SSP Database to identify the Sites which have "Moving" attribute set to 'True </span>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="circle">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle; color: blue;"><span style="font-family: Calibri; font-size: 11pt; color: blue;">SELECT</span><span style="font-family: Calibri; font-size: 11pt; color: gray;">* </span><span style="font-family: Calibri; font-size: 11pt; color: blue;">FROM</span><span style="font-family: Calibri; font-size: 11pt; color: black;"> [SharedServices1_DB]</span><span style="font-family: Calibri; font-size: 11pt; color: gray;">.</span><span style="font-family: Calibri; font-size: 11pt; color: black;">[dbo]</span><span style="font-family: Calibri; font-size: 11pt; color: gray;">.</span><span style="font-family: Calibri; font-size: 11pt; color: black;">[SiteSynch] </span><span style="font-family: Calibri; font-size: 11pt; color: blue;">Where</span><span style="font-family: Calibri; font-size: 11pt; color: black;"> Moving </span><span style="font-family: Calibri; font-size: 11pt; color: gray;">=</span><span style="font-family: Calibri; font-size: 11pt; color: red;">'1'</span></li>
</ul>
</li>
</ul>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="disc">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Run the following command </span><span style="font-weight: bold; font-family: Calibri; font-size: 11pt; background: none repeat scroll 0% 0% yellow;">against each of the Site Collections</span><span style="font-family: Calibri; font-size: 11pt;"> you find which have "Moving" attribute set to 'True' or '1' </span>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="circle">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">stsadm -o preparetomove -site </span><a href="https://webapp/SiteCollection/"><span style="font-family: Calibri; font-size: 11pt;">https://WebApp/SiteCollection</span></a><a href="https://webapp/SiteCollection"><span style="font-family: Calibri; font-size: 11pt;">/</span></a><span style="font-family: Calibri; font-size: 11pt;"> -undo</span></li>
</ul>
</li>
</ul>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="disc">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Run the below commands on a WFE which hosts Central Admin in the following order </span>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="circle">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">stsadm -o sync -synctiming m:10 (</span><span style="font-family: Calibri; font-size: 10pt;">If you have large number of users in a Site Collection where you're experiencing the issue, increase the number to h:2 {2 hours} or so such that the sync job doesn&rsquo;t overlap and sync job gets sufficient time to execute</span><span style="font-family: Calibri; font-size: 11pt;">)</span></li>
</ul>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="circle">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">stsadm -o sync -ignoreisactive 1 (</span><span style="font-family: Calibri; font-size: 10pt;">switch only</span><span style="font-family: Calibri; font-size: 10pt;">available in builds 12.0.6314.5000 and above</span><span style="font-family: Calibri; font-size: 11pt;">)</span></li>
</ul>
</li>
</ul>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 10pt;"><span style="font-weight: bold; text-decoration: underline;">Note</span>: Setting ignoreisactive to '1' or 'True' will trigger all the Inactive users in the Content DB to get sync'd, which may be CPU intensive and cause a spike / transaction log growth on DB server, its important to revert it back once we are done</p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 10pt;">The actual performance impact caused by 'ignoreisactive' is determined by</p>
<ul style="margin-left: 1.125in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="disc">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 10pt;">Total number of user entries in userinfo tables of each content database. </span></li>
</ul>
<ul style="margin-left: 1.125in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="disc">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 10pt;">The ratio of inactive/active users in userinfo table </span></li>
</ul>
<ul style="margin-left: 1.125in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="disc">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 10pt;">Current topology architecture and hardware configuration, e.g. it will ease the perf hit if customers split the content DBs and SSP DB to separate physical hard drives, and/or they separate the SSP DB from content DBs to different physical SQL server etc. </span></li>
</ul>
<ul style="margin-left: 1.125in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="disc">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 10pt;">How frequent they schedule the User Sync job. It's highly recommanded to set the sync job to run once everyday at non-working hour or in a test environment to evaluate the performance impact first. After understanding the SQL Disk I/O, CPU usage etc., then make the decision on how frequent and when to run the job based on business needs, and moving on to production system.</span></li>
</ul>
<ul style="margin-left: 0.75in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="circle">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">stsadm -o sync -deleteolddatabases 0</span></li>
</ul>
<ul style="margin-left: 0.75in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="circle">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">stsadm -o sync</span></li>
</ul>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="disc">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">If you notice none of the site collection in the entire web application are sync'ing then you may have excluded the web app. You can run the below command to correct that and get the site collection in web app to sync again.</span>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="circle">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Stsadm -o sync -excludewebapps ""</span></li>
</ul>
</li>
</ul>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri;"><span style="font-weight: bold; font-size: 11pt;">Note</span><span style="font-size: 11pt;">: We are passing a NULL list (</span><span style="font-size: 10pt;">observe there is no value between quotes</span><span style="font-size: 11pt;">) as there is no way to remove a specific web application from this list. So, lets say you have added 2 web applications to exclude and just want 1 to be included back then you have to remove both and then add 1 again which you don&rsquo;t wish to sync)</span></p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; font-family: Calibri;"><span style="font-size: 11pt;">Now wait for ~30 to 60 mins and verify if profile sync is working (</span><span style="font-size: 10pt;">you may need to wait longer if there are lot of users in the Site Collection so that all entries are updated</span><span style="font-size: 11pt;">)</span></p>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="disc">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Once confirmed its working fine; it is very important to revert back the changes to defaults</span>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="circle">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Set ignoreisactive back to 0 by running </span>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="disc">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">stsadm -o sync -ignoreisactive 0</span></li>
</ul>
</li>
</ul>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="circle">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Set the Profile Sync job back to default time of 1 hour by running </span>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="disc">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">stsadm -o sync -synctiming h:1</span></li>
</ul>
</li>
</ul>
</li>
</ul>
<p style="margin: 0in 0in 0in 0.375in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">Note:<span>&nbsp; </span>If you observe that nothing of the above has worked, try the below 2 steps</p>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="disc">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Detach and attach the Content DB (</span><span style="font-family: Calibri; font-size: 10pt;">perform this step in a TEST ENVIRONMENT first to understand any impact prior doing on Production</span><span style="font-family: Calibri; font-size: 11pt;">)</span></li>
</ul>
<ul style="margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;" type="disc">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Try adding the user directly (not thru a Active Directory / SharePoint Group) and check</span></li>
</ul>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">&nbsp;</p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-family: calibri; font-size: 11pt;"><span style="font-family: Calibri; font-size: 11pt;"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/07/4503.5.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-76-07/4503.5.jpg" alt="" border="0" /></span></span></p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>How to delete orphan configuration objects from SharePoint farm</title>
      <link>https://docs.microsoft.com/archive/blogs/nishants/how-to-delete-orphan-configuration-objects-from-sharepoint-farm</link>
      <pubDate>Wed, 14 Apr 2010 09:08:00 GMT</pubDate>
      <dc:creator><![CDATA[Nishant Shah]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/nishants/2010/04/14/how-to-delete-orphan-configuration-objects-from-sharepoint-farm/</guid>
      <description><![CDATA[The information in this blog is intended for orphan configuration objects and NOT orphan SharePoint...]]></description>
      <content:encoded><![CDATA[<p><span style="font-size: small;"><span style="color: #ff0000;"><span style="color: #000000; font-size: x-small;"><span style="font-size: small;">The information in this blog is intended for orphan configuration objects and NOT orphan SharePoint Sites in the Content / Configuration Database. If you are looking for clearing the Orphan SharePoint Sites, check </span><a href="https://blogs.technet.com/b/corybu/archive/2007/05/31/sharepoint-orphans-explained.aspx"><span style="font-size: small;">https://blogs.technet.com/b/corybu/archive/2007/05/31/sharepoint-orphans-explained.aspx</span></a></span></span></span></p>
<p><span style="font-size: small;"><span style="color: #ff0000;"></span></span><span style="font-size: small;"><span style="color: #ff0000;"><strong><span style="text-decoration: underline;">Note</span></strong>:</span></span> <strong><span style="color: #ff0000;">Please be VERY careful when executing the deleteconfigurationobject command, if this command is not used in the correct way (if you end up deleting the wrong object) there is NO way to revert back the changes and it has the potential to render your Configuration Database useless, hence you may require to restore / rebuild your SharePoint farm !!! </span></strong></p>
<p><span style="color: #ff0000;"><strong><span style="font-size: small;">Update</span></strong>: <strong>Running this command without explicit approval from SharePoint Product Group is <span style="background-color: #ffff00;">not supported</span>, use the information available in this blog <span style="background-color: #ffff00;">ONLY IN TEST ENVIRONMENT</span> to ensure your SharePoint environment&nbsp;has the issue described here, once confirmed open a support case with Microsoft and let them get approval from SharePoint Product Group.</strong></span></p>
<p><span style="color: #ff0000; font-size: small;"><strong><span style="text-decoration: underline;">Disclaimer</span>:</strong></span> <strong><span style="color: #ff0000;">This posting is provided "AS-IS" with no warranties, and confers no rights. Use this information at your own risk, I or Microsoft are not responsible for any damage which may occur due to wrong usage of this command.</span></strong> </p>
<p>Lets consider a scenario of a site called SharePoint &ndash; 80 which was deleted sometime back but when you go to Central Administration &gt; Operations &gt; Timer Job Definitions you see an Immediate Alerts job still exists as below. </p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/nishants/WindowsLiveWriter/Howtodeleteorphanconfigurationobjectsfro_12F4F/clip_image002%5B4%5D.jpg" original-url="https://blogs.technet.com/blogfiles/nishants/WindowsLiveWriter/Howtodeleteorphanconfigurationobjectsfro_12F4F/clip_image002%5B4%5D.jpg"><img height="22" width="244" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/nishants/WindowsLiveWriter/Howtodeleteorphanconfigurationobjectsfro_12F4F/clip_image002%5B4%5D_thumb.jpg" original-url="https://blogs.technet.com/blogfiles/nishants/WindowsLiveWriter/Howtodeleteorphanconfigurationobjectsfro_12F4F/clip_image002%5B4%5D_thumb.jpg" alt="clip_image002[4]" border="0" title="clip_image002[4]" style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" /></a> </p>
<p>The above timer job should have got deleted when the SharePoint &ndash; 80 site was deleted however somehow its left out and may interfere with other alert timer jobs. </p>
<p>To get rid of this timer job we will need the Configuration ID of the timer job which can be found by looking at Internet Explorer status bar while pointing your mouse cursor on the orphan timer job. Note down the GUID after <b>JobId=</b> </p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/nishants/WindowsLiveWriter/Howtodeleteorphanconfigurationobjectsfro_12F4F/clip_image002%5B6%5D.jpg" original-url="https://blogs.technet.com/blogfiles/nishants/WindowsLiveWriter/Howtodeleteorphanconfigurationobjectsfro_12F4F/clip_image002%5B6%5D.jpg"><img height="27" width="244" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/nishants/WindowsLiveWriter/Howtodeleteorphanconfigurationobjectsfro_12F4F/clip_image002%5B6%5D_thumb.jpg" original-url="https://blogs.technet.com/blogfiles/nishants/WindowsLiveWriter/Howtodeleteorphanconfigurationobjectsfro_12F4F/clip_image002%5B6%5D_thumb.jpg" alt="clip_image002[6]" border="0" title="clip_image002[6]" style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" /></a> </p>
<p>Run the following command and replace objectId with above GUID number. </p>
<p>stsadm.exe -o deleteconfigurationobject -id &lt;objectId&gt; </p>
<p>You just got rid of your Orphan Immediate Alerts timer job! </p>
<p>Now lets take a scenario of an orphan application pool. &lsquo;Orphan application pool&rsquo; is an object which is visible when you browse to Central Administration &gt; Operations &gt; Service Accounts &gt; Choose Web application pool &gt; Choose Windows SharePoint Services Web Application. Here in the drop down you see an orphan app pool which actually doesn&rsquo;t exist on any of the web front ends (and also this app pool isn&rsquo;t utilized for any web applications). Orphan app pool wouldn&rsquo;t be listed in timer job definitions so that makes our job little difficult. </p>
<p>(Note: We are just going to read data from SQL Server and not perform any write operation as direct database modification is not supported for SharePoint databases &ndash; <a href="https://support.microsoft.com/kb/841057">https://support.microsoft.com/kb/841057</a>) </p>
<p>(Also ensure you have a good backup of your SharePoint Farm just in case if you accidently end up changing anything in database directly) </p>
<p>Open SQL Server Management Studio for SQL Server which hosts SharePoint databases &gt; New Query </p>
<p><em><span style="color: #0000ff;">SELECT</span>&nbsp;&nbsp;&nbsp;&nbsp; Id, Name, Status, Properties</em> </p>
<p><em><span style="color: #0000ff;">FROM</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Objects</em> </p>
<p><em><span style="color: #0000ff;">WHERE</span> <span style="color: #c0c0c0;">(</span>Name LIKE '<span style="color: #ff0000;">SharePoint - 80</span>'<span style="color: #c0c0c0;">)</span></em> </p>
<p>&nbsp;</p>
<p>(Here <b>SharePoint &ndash; 80</b> is our orphan app pool name) </p>
<p>Now; it would give you a few entries; look in properties and note down the <b>ID</b> of the one which shows &lt;object type="Microsoft.SharePoint.Administration.SPApplicationPool, &hellip;. &gt; </p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/nishants/WindowsLiveWriter/Howtodeleteorphanconfigurationobjectsfro_12F4F/clip_image002%5B8%5D.jpg" original-url="https://blogs.technet.com/blogfiles/nishants/WindowsLiveWriter/Howtodeleteorphanconfigurationobjectsfro_12F4F/clip_image002%5B8%5D.jpg"><img height="39" width="244" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/nishants/WindowsLiveWriter/Howtodeleteorphanconfigurationobjectsfro_12F4F/clip_image002%5B8%5D_thumb.jpg" original-url="https://blogs.technet.com/blogfiles/nishants/WindowsLiveWriter/Howtodeleteorphanconfigurationobjectsfro_12F4F/clip_image002%5B8%5D_thumb.jpg" alt="clip_image002[8]" border="0" title="clip_image002[8]" style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" /></a> </p>
<p>Again, run the following command and replace objectId with above GUID number to get rid of the orphan application pool. </p>
<p>stsadm.exe -o deleteconfigurationobject -id &lt;objectId&gt;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Approve failed for the Distribution Group</title>
      <link>https://docs.microsoft.com/archive/blogs/nishants/approve-failed-for-the-distribution-group</link>
      <pubDate>Fri, 08 Jan 2010 15:49:00 GMT</pubDate>
      <dc:creator><![CDATA[Nishant Shah]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/nishants/2010/01/08/approve-failed-for-the-distribution-group/</guid>
      <description><![CDATA[I came across a scenario where we were using SharePoint Directory Management Service (just SMTP/POP3...]]></description>
      <content:encoded><![CDATA[<p>I came across a scenario where we were using SharePoint Directory Management Service (just SMTP/POP3 email infrastructure, no Exchange Server yet) to create distribution groups and we wanted to create a new SharePoint Group with E-Mail Distribution List and it fails with "<strong>Approve failed for the distribution group</strong>" error message.  <p>You see an error similar to the below one in ULS Logs.  <p>01/09/2010 04:26:55.43 w3wp.exe (0x07F4) 0x11C4 Windows SharePoint Services Topology 8zri High System.DirectoryServices.DirectoryServicesCOMException (0x8007200A): The specified directory service attribute or value does not exist. (Exception from HRESULT: 0x8007200A) at System.DirectoryServices.DirectoryEntry.CommitChanges() at Microsoft.SharePoint.EmailIntegration.SPEWSADManager.CreateDistributionGroup(String Alias, String Name, String Description, Object memberList, Boolean RequireContactValidation, DistributionGroupFlags Flags)SPEWSADManager::CreateDistributionGroup  <p>We go to Site Settings &gt; People and Groups &gt; New &gt; Group &gt; Type in details and make sure to choose “Yes” for Create an e-mail distribution group for this group and specify a Distribution list e-mail address.  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/nishants/WindowsLiveWriter/ApprovefailedfortheDistributionGroup_4AB1/clip_image001_2.png" original-url="https://blogs.technet.com/blogfiles/nishants/WindowsLiveWriter/ApprovefailedfortheDistributionGroup_4AB1/clip_image001_2.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image001" border="0" alt="clip_image001" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/nishants/WindowsLiveWriter/ApprovefailedfortheDistributionGroup_4AB1/clip_image001_thumb.png" original-url="https://blogs.technet.com/blogfiles/nishants/WindowsLiveWriter/ApprovefailedfortheDistributionGroup_4AB1/clip_image001_thumb.png" width="244" height="75"></a>  <p>This will send the above mentioned DL to approval at Central Admin &gt; Operations &gt; Approve/reject distribution groups  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/nishants/WindowsLiveWriter/ApprovefailedfortheDistributionGroup_4AB1/clip_image002_2.png" original-url="https://blogs.technet.com/blogfiles/nishants/WindowsLiveWriter/ApprovefailedfortheDistributionGroup_4AB1/clip_image002_2.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image002" border="0" alt="clip_image002" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/nishants/WindowsLiveWriter/ApprovefailedfortheDistributionGroup_4AB1/clip_image002_thumb.png" original-url="https://blogs.technet.com/blogfiles/nishants/WindowsLiveWriter/ApprovefailedfortheDistributionGroup_4AB1/clip_image002_thumb.png" width="244" height="127"></a>  <p>When we click on the group name and click on Approve we get the error message<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/nishants/WindowsLiveWriter/ApprovefailedfortheDistributionGroup_4AB1/clip_image004_2.jpg" original-url="https://blogs.technet.com/blogfiles/nishants/WindowsLiveWriter/ApprovefailedfortheDistributionGroup_4AB1/clip_image004_2.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image004" border="0" alt="clip_image004" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/nishants/WindowsLiveWriter/ApprovefailedfortheDistributionGroup_4AB1/clip_image004_thumb.jpg" original-url="https://blogs.technet.com/blogfiles/nishants/WindowsLiveWriter/ApprovefailedfortheDistributionGroup_4AB1/clip_image004_thumb.jpg" width="244" height="144"></a>  <p><strong>Cause</strong>:  <p>After doing quite some research, I found upon clicking on Approve, AD responds with noSuchAttribute as the msExchRequireAuthToSendTo attribute is unknown. This attribute is only available with Exchange 2003 or later.  <p><strong>Workaround</strong>:  <p>Best way would be to install Exchange 2003 however its observed that if Exchange 2003 AD Extensions can be installed by just Exchange_Setup.exe /ForestPrep.  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/nishants/WindowsLiveWriter/ApprovefailedfortheDistributionGroup_4AB1/clip_image006_2.jpg" original-url="https://blogs.technet.com/blogfiles/nishants/WindowsLiveWriter/ApprovefailedfortheDistributionGroup_4AB1/clip_image006_2.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image006" border="0" alt="clip_image006" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/nishants/WindowsLiveWriter/ApprovefailedfortheDistributionGroup_4AB1/clip_image006_thumb.jpg" original-url="https://blogs.technet.com/blogfiles/nishants/WindowsLiveWriter/ApprovefailedfortheDistributionGroup_4AB1/clip_image006_thumb.jpg" width="244" height="197"></a>  <p>Once the ForestPrep is successful, you should no longer get the error message after clicking on Approve and should see a Distribution Group successfully getting created in the designated OU in AD.</p> <p><strong>Disclaimer</strong>: <p>When you use the /ForestPrep option, the Exchange Setup program extends the Active Directory schema to add Exchange-specific classes and attributes. <strong>THIS PROCESS IS IRREVERSIBLE</strong> and you should understand the consequences of running /ForestPrep prior to running it. ]]></content:encoded>
    </item>
  </channel>
</rss>