I have a backup that is failing to backup the System State on a 2016 server, we have identified that the System Writer is missing by running VSSADMIN LIST WRITERS. We have been through the articles that reregister the writers, set permissions on various folders:
First
cd /d %windir%\system32
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
Second
Takeown /f %windir%\winsxs\temp\PendingRenames /a
icacls %windir%\winsxs\temp\PendingRenames /grant "NT AUTHORITY\SYSTEM:(RX)"
icacls %windir%\winsxs\temp\PendingRenames /grant "NT Service\trustedinstaller:(F)"
icacls %windir%\winsxs\temp\PendingRenames /grant BUILTIN\Users:(RX)
Takeown /f %windir%\winsxs\filemaps\* /a
icacls %windir%\winsxs\filemaps\*.* /grant "NT AUTHORITY\SYSTEM:(RX)"
icacls %windir%\winsxs\filemaps\*.* /grant "NT Service\trustedinstaller:(F)"
icacls %windir%\winsxs\filemaps\*.* /grant BUILTIN\Users:(RX)
net stop cryptsvc
net start cryptsvc
Using procmon I believe that we have narrowed it down to rights on the folder "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files" as Procmon shows "Accessed Denied on "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\active". I have given "Network Service" full permissions on "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files" but still I get the access denied. Can anyone offer any suggestions on how to resolve this?