SQL Server writes the PID and Uptime of SQL process to Registry key for every one minute and this operation is failing with “Access denied” hence the error.
We provided permission to the SQL Service Account on the required registry key (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL14.MSSQLSERVER\MSSQLServer) but it didn’t fix the issue.
From the process monitor, it has been identified that Office components are interacting with SQL Server while writing the data to registry key.
We have identified that SQL Server is using MS Office components to import and export data into Excel through BULK Insert queries. So we couldn’t uninstall Office.
The Office has been upgraded to latest version but still the issue persists
Upon further investigation, we have identified that Office is using Virtual registry and we need to bypass it.
For the same we have added (Don't overwrite it) the required SQL reg key(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL14.MSSQLSERVER\MSSQLServer) to the list of exceptions at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\Software\Microsoft\AppV\Subsystem\VirtualRegistry under “passthroughPaths” and this fixed the issue.