You are currently offline, waiting for your internet to reconnect

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

This article was previously published under Q314162
This article has been archived. It is offered "as is" and will no longer be updated.
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.
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.
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.
  2. Secure the Portal.backup folder so that only administrators or coordinators can view the Portal.backup folder.
  3. 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("WinNTSystemInfo")Set oWorkspaceFolder = CreateObject("CDO.KnowledgeFolder")Set oBackupFolder = CreateObject("CDO.KnowledgeFolder")oWorkspaceFolder.DataSource.Open "http://" & InfoNT.ComputerName & "/SharePoint Portal Server/workspaces/"Set oRS1 = CreateObject("ADODB.Recordset")Set oRS2 = CreateObject("ADODB.Recordset")Set oRS1 = oWorkspaceFolder.SubFolders 'Get list of workspaces on serverWhile Not oRS1.EOF 'Turn off indexing of Portal.Backup folder and sub folders  if not oRS1.Fields("DAV:IsHidden") then 'Only process non-hidden folders in /SharePoint Portal Server/workspaces/     SetNoIndex oRS1.Fields("DAV:href") & "/Portal/Portal.Backup"    oBackupFolder.DataSource.Open oRS1.Fields("DAV:href") & "/Portal/Portal.Backup"    Set oRS2 = oBackupFolder.SubFolders    While Not oRS2.EOF      SetNoIndex oRS2.Fields("DAV:href")      oRS2.MoveNext    Wend    wscript.echo "Indexing disabled for " & oRS1.Fields("DAV:href") & "/Portal/Portal.Backup"  End If  oRS1.MoveNextWendSub SetNoIndex(strURL)  Dim Rec, Conn, Flds  Set Rec = CreateObject("ADODB.Record")  Set Conn = CreateObject("ADODB.Connection")   Conn.Provider = "ExOLEDB.DataSource"  Conn.Open strURL  Rec.Open replace(strURL, "", "%20"), Conn, 3  Set Flds = Rec.Fields  Flds("") = "True"  Flds.UpdateEnd Sub				
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Article ID: 314162 - Last Review: 02/27/2014 21:11:07 - Revision: 2.2

Microsoft SharePoint Portal Server 2001 Service Pack 1

  • kbnosurvey kbarchive kbbug KB314162