Could not connect to registry hive HKEY_LOCAL_MACHINE\Software\Microsoft\SMS on computer
How to find the Windows version using Registry? | MiViLiSNet
Fixing "Please set registry key HKLM \ Software \ Microsoft \ .NETFramework \ InstallRoot to point to the .NET Framework install location" error on a 64-bit Windows PC