Как снести агента VMM с хоста Hyper-V даже если агент этого сильно не хочет

В интернетах много написано про то как снести агента VMM с core сервера:

Get-WMIObject -Class Win32_product или Regedit > HKLM > Software > Microsoft > Windows > CurrentVersion > Uninstall, там находим GUID MSI пакета и далее msiexec /x “{GUID}” или wmic get product name “Имя продукта” delete… И это все прекрасно. Когда эти записи в реестреWMI есть. А если их нет, а агент есть? 🙂

CopyPaste моего поста на social.Technet

  1. We imported registry folders from the host where agent was present and working normally
    ``` HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders





HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib_V2Providers{ab8e1320-965a-4cf9-9c07-fe25378c2a23} ```

  1. We changed build number to the one from UR6 (something.8002 or whatever, you can google it). In description and in hex (version string) and path to msi under C:\Windows\Installer. You can figure out the MSI you need by size, for example.

  2. The program was still missing in Add\Remove but we were able to remove program with https://support.microsoft.com/mats/program_install_and_uninstall (don’t forget to shutdown SCVMMAgent service before doing so).

  3. We used the SC utility to delete VMM Agent service (sc delete SCVMMAgent)

  4. Renamed\Deleted VMM Agent folder in program files

  5. We manually installed agent.

  6. Reassociated host from VMM console

Written on August 25, 2015