Date

VSS Writers missing : ‘C:\Windows\inf’ corrupt

Issue

System Writer missing

Symptoms

  • System State backup fails with error ” The Volume Shadow Copy service entered the stopped state
  • In “vssadmin list writers” output, System Writer missing

Error in System Logs

Log Name:      System

Source:        Service Control Manager

Event ID:      7036

Task Category: None

Level:         Information

Keywords:      Classic

Description:

The Volume Shadow Copy service entered the stopped state.

Observation

  • Started the Procmon capture
  • Run “vssadmin list writers” command
  • Stop Procmon capture, select Filter icon
  • Filter current Procmon traces with “Path | Contains | vss\diag | Include” and select “Apply/OK
  • Select “HKLM\System\CurrentControlSet\Services\VSS\Diag\System Writer\IDENTIFY (Enter)” -> Right Click on “PID: 1348” -> Select ‘Include 1348
  • Select “HKLM\System\CurrentControlSet\Services\VSS\Diag\System Writer\IDENTIFY (Leave)
  • Select Filter icon and uncheck “Path -> Contains -> vss\diag” and select “Apply/OK
  • Few entries above, notice “File Locked with only Readers” status for following files
43:20.8svchost.exe1348CreateFileC:\Windows\inf\setupapi.ev1SUCCESSDesired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, AllocationSize: n/a, OpenResult: Opened
43:20.8svchost.exe1348QueryStandardInformationFileC:\Windows\inf\setupapi.ev1SUCCESSAllocationSize: 20,480, EndOfFile: 19,904, NumberOfLinks: 1, DeletePending: False, Directory: False
43:20.8svchost.exe1348CreateFileMappingC:\Windows\inf\setupapi.ev1FILE LOCKED WITH ONLY READERSSyncType: SyncTypeCreateSection, PageProtection: PAGE_READONLY
43:20.8svchost.exe1348CreateFileC:\Windows\inf\setupapi.ev2SUCCESSDesired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, AllocationSize: n/a, OpenResult: Opened
43:20.8svchost.exe 1348 QueryStandardInformationFileC:\Windows\inf\setupapi.ev2SUCCESSAllocationSize: 16,384, EndOfFile: 14,040, NumberOfLinks: 1, DeletePending: False, Directory: False
43:20.8svchost.exe1348CreateFileMappingC:\Windows\inf\setupapi.ev2FILE LOCKED WITH ONLY READERSSyncType: SyncTypeCreateSection, PageProtection: PAGE_READONLY
43:20.8svchost.exe1348CreateFileC:\Windows\inf\setupapi.ev3SUCCESSDesired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, AllocationSize: n/a, OpenResult: Opened
43:20.8svchost.exe1348QueryStandardInformationFileC:\Windows\inf\setupapi.ev3SUCCESSAllocationSize: 86,016, EndOfFile: 86,016, NumberOfLinks: 1, DeletePending: False, Directory: False
43:20.8svchost.exe1348CreateFileMappingC:\Windows\inf\setupapi.ev3FILE LOCKED WITH ONLY READERSSyncType: SyncTypeCreateSection, PageProtection: PAGE_READONLY

Cause:

System Writer metadata file contains files from location: C:\Windows\inf. If any of these files are locker or corrupt, System writer will not able to compile metadata files, hence System Writer will be missing in “vssadmin list writers” output

Solution:

  • Copy these three files from a working system (same Operating System and Build) and replaced corrupted files at location: C:\Windows\inf\

C:\Windows\inf\setupapi.ev1

C:\Windows\inf\setupapi.ev2

C:\Windows\inf\setupapi.ev3

  • Verify “Network Service” account has ‘Read‘ permissions on these files

AZmachina

Knowledge Shared = Knowledge2

We have created AZmachina blog to share our knowledge on Docker & Container and Kubernetes on Windows Servers with curious and enthusiastic novice learner. We hope that this will help them to take a swim in this vast ocean of Window Containers and Kubernetes

Happy Learning !
Recent Posts
Categories
Archives
Sumeet Kumar

Sumeet Kumar

I am Windows Core Engineer with 7+ years of experience in Windows Hyper-v, Failover Cluster, Windows Storage, Volume Shadow Copy (VSS), Docker & Containers on Windows Servers, Backup & Recovery, VMware vSphere EXSi & vCenter Server

RELATED

Articles

Leave a Reply

Your email address will not be published. Required fields are marked *