4 Replies Latest reply on Nov 11, 2019 5:50 AM by haripadmam

    VMware tools registry cleanup

    haripadmam Enthusiast

      Hi Team,

      I have issues updating/reinstall tools where MSI package is being searched in temp local but couldn't be found. I managed to fix it by manually removing below registry entries and reboot it to load vmtools from update manager. I have also got below script to do it and it doesn't seems to work. Can anyone please point out whats missing in the batch file?

      HKLM:\Software\Microsoft\Windows\CurrentVersion\uninstall\<need to find key matching dword for VMware Tools>
      HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\<need to find key matching dword for VMware Tools>
      Batch file:
      echo Windows Registry Editor Version 5.00>%temp%\removeToolsRegistry.reg
      for /f %%a in ('reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall /s /f "VMware Tools" ^| find "HKEY_LOCAL_MACHINE"') do echo [-%%a]>>%temp%\removeToolsRegistry.reg
      for /f %%a in ('reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products /s /f "VMware Tools" ^| find "HKEY_LOCAL_MACHINE"') do set key=%%a
      echo [-%key:~0,-18%]>>%temp%\removeToolsRegistry.reg
      regedit -s %temp%\removeToolsRegistry.reg