Microsoft KB Archive/314162

= SharePoint Portal Server Portal Backup Files Are Indexed and Appear in Search Results =

Article ID: 314162

Article Last Modified on 10/28/2006

-

APPLIES TO


 * Microsoft SharePoint Portal Server 2001 Service Pack 1

-



This article was previously published under Q314162





SYMPTOMS
When you perform a search by using SharePoint Portal Server Service Pack 1 (SP1), simple searches may return an excessive amount of results that include many different file types.



CAUSE
This problem can occur because SharePoint Portal Server SP1 installs a Portal.backup folder in the Portal folder. The folder is indexed by default and has Everyone read permissions.



WORKAROUND
To work around this problem:
 * 1) Remove the Portal.backup folder.

NOTE: Do not remove the Portal.backup folder until you update any customizations that may be removed after you apply SharePoint Portal Server SP1.
 * 1) Secure the Portal.backup folder so that only administrators or coordinators can view the Portal.backup folder.
 * 2) Turn off indexing of the Portal.backup folder. The following script turns off indexing of the folder. Save the script to a .vbs file to run the script:

Dim InfoNT, oWorkspaceFolder, oBackupFolder, oRS1, oRS2

Set InfoNT = CreateObject(&quot;WinNTSystemInfo&quot;) Set oWorkspaceFolder = CreateObject(&quot;CDO.KnowledgeFolder&quot;) Set oBackupFolder = CreateObject(&quot;CDO.KnowledgeFolder&quot;)

oWorkspaceFolder.DataSource.Open &quot;http://&quot; & InfoNT.ComputerName & &quot;/SharePoint Portal Server/workspaces/&quot;

Set oRS1 = CreateObject(&quot;ADODB.Recordset&quot;) Set oRS2 = CreateObject(&quot;ADODB.Recordset&quot;)

Set oRS1 = oWorkspaceFolder.SubFolders 'Get list of workspaces on server

While Not oRS1.EOF 'Turn off indexing of Portal.Backup folder and sub folders if not oRS1.Fields(&quot;DAV:IsHidden&quot;) then 'Only process non-hidden folders in /SharePoint Portal Server/workspaces/ SetNoIndex oRS1.Fields(&quot;DAV:href&quot;) & &quot;/Portal/Portal.Backup&quot; oBackupFolder.DataSource.Open oRS1.Fields(&quot;DAV:href&quot;) & &quot;/Portal/Portal.Backup&quot; Set oRS2 = oBackupFolder.SubFolders While Not oRS2.EOF SetNoIndex oRS2.Fields(&quot;DAV:href&quot;) oRS2.MoveNext Wend wscript.echo &quot;Indexing disabled for &quot; & oRS1.Fields(&quot;DAV:href&quot;) & &quot;/Portal/Portal.Backup&quot; End If oRS1.MoveNext Wend

Sub SetNoIndex(strURL) Dim Rec, Conn, Flds Set Rec = CreateObject(&quot;ADODB.Record&quot;) Set Conn = CreateObject(&quot;ADODB.Connection&quot;) Conn.Provider = &quot;ExOLEDB.DataSource&quot; Conn.Open strURL Rec.Open replace(strURL, &quot;&quot;, &quot;%20&quot;), Conn, 3

Set Flds = Rec.Fields Flds(&quot;urn:schemas.microsoft.com:fulltextqueryinfo:noindex&quot;) = &quot;True&quot; Flds.Update End Sub



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Additional query words: sps

Keywords: kbbug KB314162

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.