Simon Gibson

Site Search:
ASP.NET Search for Index Server ASP.NET Suche für den MS/Indexdienst ASP Search for Index Server ASP Site Search for IIS web sites

Indexing Services: Forcing UNC paths for local indexed content.
(Windows 2000 Server, Windows Server 2003)

Overview:
Although UNC share names are automatically added for remote indexed content, the Indexing Service will return the full physical path for local content, even if the "Add Share Alias automatically" option is selected and/or "UNC Share Alias" specified when the directory is added.

To solve this problem, we need to add a simple registry value which will force the Indexing Service "Path" to return the UNC share name (if applicable) rather than the physical path.

The steps below illustrate how to do this and is intended for those not familiar with the Registry. For those that are, simply locate the following key:

HKLM\SYSTEM\CurrentControlSet\Control\ContentIndex

And add a new DWORD value of ForcePathAlias with a value of 1.

If you are not familiar with the Registry, follow the steps below:

 
 

Figure 1

1. Open the Registry Editor:
Click on 'Start' then 'Run' and type "regedit" into the "Open" box (as illustrated above). Press "OK" to open the Registry Editor.

 
 

 
 

Figure 2

2. Locate the "ContentIndex" key and add a new DWORD value:
Once the Registry Editor has opened, expand each of the following sections to get to the "ContentIndex" key:

My Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ContentIndex

Once you have located and selected the "ContentIndex" key, right-click on it and select "New" and "DWORD Value" as shown in the illustration above.

 
 

 
 

Figure 3

3. Modifying the new DWORD value:
The new DWORD value will initially be set as "New Value #1". You should change this name to ForcePathAlias simply by typing over it. If you have already allowed the title to be set, you can rename it by right-clicking on it and selecting "Rename".

Once you have set the title to ForcePathAlias, you should right-click on it and select "Modify" as shown in the illustration above. This will open the "Edit DWORD Value" dialog box.

 
 

 
 

Figure 4

4. Edit DWORD Value dialog:
The final step is to set the data for the ForcePathAlias value, simply replace the value of 0 with 1 and you're done. The Indexing Service will now return UNC share names (where appropriate) for local indexed content instead of full physical paths.

 
 
[Home] [3D Design] [Web Design] [Intranet/Extranet] [Personal]
Design and Content © Simon Gibson 2000 - 2008
[Email] [Site Map] [Search] [Privacy]
There are currently 13 users online.