Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 314162 - Last Review: October 28, 2006 - Revision: 2.2
SharePoint Portal Server Portal Backup Files Are Indexed and Appear in Search Results
This article was previously published under Q314162
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:
- 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. - Secure the Portal.backup folder so that only administrators or coordinators can view the Portal.backup folder.
- 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 server
While 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.MoveNext
Wend
Sub 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("urn:schemas.microsoft.com:fulltextqueryinfo:noindex") = "True"
Flds.Update
End Sub
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
APPLIES TO
- Microsoft SharePoint Portal Server 2001 Service Pack 1
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate