Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 



JSI Tip 9782. Windows XP NTBackup.exe issues a 'Volume Shadow Copy Service' error and the Application event log records Event ID 5013 or 12302?

RSS
Subscribe to Windows IT Pro | See More Backup and Recovery Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!


9782 » Windows XP NTBackup.exe issues a 'Volume Shadow Copy Service' error and the Application event log records Event ID 5013 or 12302? 05-Oct-05


When running NTBackup.exe to perform a backup, a restore, or a volume shadow copy, you receive an error like:

Volume Shadow Copy Service error: Shadow Copy writer ContentIndexingService called routine RegQueryValueExW which failed with status 0x80070002 (converted to 0x800423f4)

The Application event log records an event similar to one of the following:

Event Type: Error
Event Source: VSS
Event Category: None
Event ID: 5013
Date: MM/DD/YYYY
Time: HH:MM:SS
User: N/A
Computer: <ComputerName>
Description: Volume Shadow Copy Service error: Shadow Copy writer ContentIndexingService called routine RegQueryValueExW which failed with status 0x80070002 (converted to 0x800423f4). For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data: 0000: 57 53 48 43 4f 4d 4e 43 WSHCOMNC 0008: 32 32 39 32 00 00 00 00 2292.... 0010: 57 53 48 43 49 43 00 00 WSHCIC.. 0018: 32 38 37 00 00 00 00 00 287.....


Event Type: Error
Event Source: VSS
Event Category: None
Event ID: 12302
Date: MM/DD/YYYY
Time: HH:MM:SS
User: N/A
Computer: <ComputerName>
Description: Volume Shadow Copy Service error: An internal inconsistency was detected in trying to contact shadow copy service writers. Please check to see that the Event Service and Volume Shadow Copy Service are operating properly. For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

The behavior is indicative of a missing Location Value Name in one or more sub-keys of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ContentIndex\Catalogs. This problem is generally the result of a program uninstall deleting the Location Value Name instead of the entire sub-key.

NOTE: The default sub-keys, and their Value Names, are:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ContentIndex\Catalogs\System
    Location    REG_SZ  C:\System Volume Information
    IsIndexingW3Svc     REG_DWORD       0x0
    IsIndexingNNTPSvc   REG_DWORD       0x0

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ContentIndex\Catalogs\web
    Location    REG_SZ  c:\inetpub
    IsIndexingW3Svc     REG_DWORD       0x1
    IsIndexingNNTPSvc   REG_DWORD       0x0
    W3SvcInstance       REG_DWORD       0x1
    GenerateCharacterization    REG_DWORD       0x1
    FilterFilesWithUnknownExtensions    REG_DWORD       0x0
    MaxCharacterization REG_DWORD       0x140
I have scripted CILoc.bat to list any sub-keys that have a missing Location Value Name. The syntax for using CILoc.bat is:

CILoc [ComputerName]

Where ComputerName is an optional NetBIOS computer name. If missing, the local computer is checked.

CILoc.bat contains:

@echo off
setlocal ENABLEDELAYEDEXPANSION
set comp=%computername%
if {%1} NEQ {} set comp=%1
set comp=%comp:"=%
set comp=\\%comp:\=%
set key=HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ContentIndex\Catalogs
for /f "Tokens=*" %%a in ('REG QUERY %comp%\%key% ^|find /i "%key%\"') do (
 set wrk1=%%a
 call set wrk2=!wrk1:%key%=!
 set OK=N
 for /f "Tokens=1" %%x in ('REG QUERY %comp%\!wrk1! /V Location^|find /i "Location"') do set OK=Y
 if "!OK!" EQU "N" @echo Location missing: %comp%\%%a
)
endlocal
If a sub-key with a missing Location is listed, delete the sub-key if the program has been uninstalled. If the program is installed, use Regedit.exe to add the Location Value Name, a REG_SZ data type, with the correct folder path.



End of Article



Reader Comments

You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
Friday at PASS Europe 2006

Kevin talks about the closing day of the event and shares a funny Microsoft film. ...

Google's Browser Created Out of Fear of Microsoft

A deep fear of Microsoft drove Google to create its own Web browser, the company's cofounders implicitly admitted Tuesday, though each was careful never to mention the software giant by name. Instead, during a press conference, Google's leaders discussed ...

Let's Get Out of the (Network) Neighborhood

Network Neighborhood might've made sense way back when, but it's long past obsolete today. ...


Related Events Check out our list of Free Email Newsletters!

Related Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.

Job Openings in IT


ADS BY GOOGLE SPONSORED LINKS FEATURED LINKS

IT Connections
Dive into the new Microsoft platforms and products you implement and support with the experts from Microsoft, TechNet Magazine, Windows ITPro and industry gurus. There are 70+ sessions and interactive panels with networking opportunities.

Attention User Group Leaders...
Announcing the eNews Generator—a FREE HTML e-newsletter builder for user group leaders. Build your HTML and text e-newsletters in minutes and add Windows IT Pro & SQL Server Mag articles alongside your own message!.

Master SharePoint with 3 eLearning Seminars
Learn how to build a better SharePoint infrastructure and enable powerful collaboration with MVPs Dan Holme and Michael Noel. Register today!

Get SQL Server 2008 at WinConnections
Don’t miss Microsoft Exchange and Windows Connections conferences, the premier events for Microsoft IT Professionals in Las Vegas, November 10-13. Every attendee will receive a copy of SQL Server 2008 Standard Edition with one CAL.



Order Your SQL Fundamentals CD Today!
Learn how to use SQL Server, understand Office integration techniques and dive into the essentials of SQL Express and Visual Basic with this free SQL Fundamentals CD.

Virtualization Congress Oct. 14-16 in London
Don't miss Virtualization Congress, the premiere EMEA conference dedicated to hardware, OS and application virtualization. Oct. 14-16.
Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technical Resources Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing