Scenario:  after running vssadmin list writers and found that some components are in failed or in error state and restarting the service or the server didn't resolve the issue.

Open cmd as admin then run each of the following  ( for Server 2012 - 2016 )
  • net stop vss
  • net stop swprv
  • regsvr32 /s ole32.dll
  • regsvr32 /s oleaut32.dll
  • regsvr32 /s vss_ps.dll
  • vssvc /register
  • regsvr32 /s /i swprv.dll
  • regsvr32 /s /i eventcls.dll
  • regsvr32 /s es.dll
  • regsvr32 /s stdprov.dll
  • regsvr32 /s vssui.dll
  • regsvr32 /s msxml.dll
  • regsvr32 /s msxml3.dll
  • regsvr32 /s msxml4.dll
  • vssvc /register
  • net start swprv
  • net start vss

Reboot the node after running the commands.

You can also refer to this article to create a batch file to run on each node.

https://documentation.n-able.com/backup/troubleshooting/Content/kb/Re-register-VSS-Writers-for-Server-2012-2016.htm