VMware Communities > VMTN > VMware vCenter™ > Converter > Discussions

This Question is Answered

1 2 3 ... 5 Previous Next
64 Replies Last post: Apr 8, 2009 3:55 AM by M1NZ
Reply

Anyone have a script to remove all the HP/Compaq agents after conversion?

Feb 1, 2007 9:05 PM

Click to view SlickBag's profile Hot Shot SlickBag 205 posts since
Jul 25, 2005
Hi,

With both old school P2V and the new converter tool, we have to uninstall about 10 HP agents/tools from "Add/Remove Programs", manually uninstall the HP Network Configuration Utility, and delete two registry keys that "Add/Remove Programs" does not remove after the conversion is completed.

Does anyone have any sweet scripts or tools to do all this automatically?

Thanks
SlickBag
Reply Re: Anyone have a script to remove all the HP/Compaq agents after conversio Feb 5, 2007 6:09 AM
Click to view Jasemccarty's profile Champion Jasemccarty 3,773 posts since
Apr 5, 2005
Look in the registry...

Look in HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\(HP Software Name)

You'll probably see a "QuietUninstallString" value in some of them.
An example would be: "C:\Program Files\Compaq\hpadu\hpuninst.exe /s" for the HP Array Diagnostic Utility.

Copy all of these to a .bat file, and then execute the .bat. You may run into some dependencies, but when you figure those out, you'll be good to go.
Reply Re: Anyone have a script to remove all the HP/Compaq agents after conversio Feb 5, 2007 6:12 AM
in response to: Jasemccarty
Click to view SlickBag's profile Hot Shot SlickBag 205 posts since
Jul 25, 2005
Thanks - I'll try it out!

SlickBag
Reply Re: Anyone have a script to remove all the HP/Compaq agents after conversio Feb 5, 2007 6:18 AM
in response to: SlickBag
Click to view Jasemccarty's profile Champion Jasemccarty 3,773 posts since
Apr 5, 2005
If you get one together... Pass it along to me...

I'll have a bunch of HP's to Convert in the next couple months...

Many thanks!
Reply Re: Anyone have a script to remove all the HP/Compaq agents after conversio Feb 5, 2007 6:34 AM
in response to: Jasemccarty
Click to view SlickBag's profile Hot Shot SlickBag 205 posts since
Jul 25, 2005
Will do!

SlickBag
Reply Re: Anyone have a script to remove all the HP/Compaq agents after conversion? Feb 5, 2007 8:28 AM
Click to view esiebert7625's profile Guru esiebert7625 6,786 posts since
Oct 23, 2006
Moderator
There is also a bunch of old hardware that does not get cleaned up. If you do the "set devmgr=show_nonpresent_devices=1" go into device manager and select "show hidden devices" you'll see lots of old HP hardware drivers in there. It would be nice to automate that whole cleanup also.
Reply Re: Anyone have a script to remove all the HP/Compaq agents after conversio Feb 5, 2007 8:34 AM
Click to view LTOPPIN's profile Novice LTOPPIN 7 posts since
Feb 27, 2006
Thanks for the information in this topic. I have the same issues here. This will defiantly short my overall prep time for a converted server!
Reply Re: Anyone have a script to remove all the HP/Compaq agents after conversio Feb 5, 2007 3:02 PM
in response to: LTOPPIN
Click to view SlickBag's profile Hot Shot SlickBag 205 posts since
Jul 25, 2005
OK - I think I have something somewhat useful working - need to tweak it a bit.

The one think I can't figure out how to remove is the "HP Network Configuration Utility". There is no "Add/Remove Programs" for it that I can find and it has to be removed by right-clicking on a NIC, selecting properties, clicking on it in the list, and then clicking the "Uninstall" button.

Anyone have any ideas how to automate removing that?
SlickBag
Reply Re: Anyone have a script to remove all the HP/Compaq agents after conversio Feb 5, 2007 6:19 PM
in response to: SlickBag
Click to view Jasemccarty's profile Champion Jasemccarty 3,773 posts since
Apr 5, 2005
I'll take a look at it when I get in tomorrow...
Reply Re: Anyone have a script to remove all the HP/Compaq agents after conversio Feb 5, 2007 7:37 PM
in response to: Jasemccarty
Click to view Jasemccarty's profile Champion Jasemccarty 3,773 posts since
Apr 5, 2005
I think that you can '86 this registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network{4D36E975-E325-11CE-BFC1-08002BE10318}{FD0FF0D6-4876-4894-9274-258564E35C07}

But I'm not 100% sure...
Reply Re: Anyone have a script to remove all the HP/Compaq agents after conversio Feb 5, 2007 10:30 PM
in response to: Jasemccarty
Click to view SlickBag's profile Hot Shot SlickBag 205 posts since
Jul 25, 2005
Here is what I came up with so far - not pretty, and not 100% tested so USE CAUTION!!!

@ECHO OFF
ECHO.
ECHO HP Physcial to Virtual Cleaner Utility
ECHO Author: your name here
ECHO.
ECHO.
ECHO *******************************************************
ECHO * This batch file semi-automates the removal of the HP
ECHO * software (agents and drivers) from a Virtaul server
ECHO * that has been virtualized using P2V Helper, VMware
ECHO * Converter, or similar software from an HP or Compaq
ECHO * physical server. This batch file assumes relatively
ECHO * newer versions of the support software, and may not
ECHO * completely remove all the software for older versions.
ECHO *******************************************************
ECHO.
ECHO.
ECHO USE AT YOUR OWN RISK!!!
ECHO.
ECHO *****************************
ECHO Type "ctrl-c" to quit now!!!
ECHO *****************************
ECHO.
ECHO USE AT YOUR OWN RISK!!!
ECHO.
Pause
cls

If NOT Exist "%SYSTEMROOT%\system32\atiiiexx.dll" Goto HP
ECHO Removing the "ATI Display Driver"...
rundll32 %SYSTEMROOT%\system32\atiiiexx.dll,_InfEngUnInstallINFFile_RunDLL@16 -inf_class:DISPLAY -clean

:HP
ECHO Removing the "HP ProLiant Legacy Port Configuration Component"...
"C:\Program Files\Compaq\CpqLpcc\hpuninst.exe" /s

ECHO Removing the "HP ProLiant Remote Monitor Service"...
%SYSTEMROOT%\system32\hpuninst.exe /s

ECHO Removing the "HP Version Control Agent"...
C:\hp\hpsmh\data\cgi-bin\vcagent\vcaremov.exe /silent C:\hp\hpsmh\data\cgi-bin\vcagent\vcagent.inf

ECHO Removing the "HP Array Configuration Utility"...
"C:\Program Files\Compaq\Cpqacuxe\hpuninst.exe" /s

ECHO Removing the "HP Array Configuration Utility CLI"...
"C:\Program Files\Compaq\Hpacucli\hpuninst.exe" /s

ECHO Removing the "HP Array Diagnostic Utility"...
"C:\Program Files\Compaq\hpadu\hpuninst.exe" /s

ECHO Removing the "HP ProLiant Integrated Management Log Viewer"...
"C:\Program Files\Compaq\Cpqimlv\hpuninst.exe" /s

ECHO Removing the "HP Insight Management Agents"...
%SYSTEMROOT%\system32\CPQMgmt\aguninst.exe /s

If NOT Exist C:\hp\hpsmh\data\htdocs\DataProtection\UnInstall.exe GOTO OLDAGENTS
ECHO Removing the "HP Protect Your Data"...
C:\hp\hpsmh\data\htdocs\DataProtection\UnInstall.exe

:OLDAGENTS
If NOT Exist "C:\Program Files\HP\hponcfg\hpuninst.exe" GOTO NOMP
ECHO Removing the "HP Lights-Out Online Configuration Utility"...
"C:\Program Files\HP\hponcfg\hpuninst.exe" /s

:NOMP
ECHO Removing the "HP System Management Homepage"...
RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\PROFES~1\RunTime\11\00\Intel32\Ctor.dll,LaunchSetup "C:\Program Files\InstallShield Installation Information{3C4DF0FD-95CF-4F7B-A816-97CEF616948F}\setup.exe" -l0x9 -removeonly

ECHO Removing the "HP Insight Diagnostics Online Edition for Windows"...
ECHO Older, problematic version...
RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\engine\6\INTEL3~1\Ctor.dll,LaunchSetup "C:\Program Files\InstallShield Installation Information{3754251E-100C-47D4-AB86-DC34047EE3C4}\setup.exe" -l0x9 UNINSTALL
ECHO Newer, good version...
MsiExec.exe /X{04DDF575-93A4-4682-A4F1-ABD29ECDFE04}

If NOT Exist "%PROGRAMFILES%\VMware\VMware Converter\InstMsi.exe" GOTO NOCONVERTER
ECHO Removing the "VMware Converter" if left behind from VMware Convertor job...
MsiExec.exe /I{A4D04B1A-DCF1-4C8C-8FFE-07D145812742}

:NOCONVERTER
ECHO Removing registry keys for services without a "Removal Option"...
regedit /s p2vcleaner.reg

ECHO Deleting old HP and COmpaq directories that are no longer needed...
rd /s/q c:\hp
rd /s/q c:\compaq
rd /s/q c:\cpqsystem
rd /s/q "%PROGRAMFILES%\compaq
rd /s/q "%PROGRAMFILES%\hp
rd /s/q %SYSTEMROOT%\system32\CPQMgmt

ECHO.
PAUSE

and the REG file in the same directory contains this:

Windows Registry Editor Version 5.00

[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\sysdown]
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\sysmgmt]


I guess this can be a work in progress. As people find new, better ways to do this, feel free to update and post back for others to use. This is just my first shot at it, so I am sure there is a LOT that can be done to make it better.

SlickBag

Reply Re: Anyone have a script to remove all the HP/Compaq agents after conversio Feb 5, 2007 10:38 PM
in response to: SlickBag
Click to view SlickBag's profile Hot Shot SlickBag 205 posts since
Jul 25, 2005
Actually, change this:

MsiExec.exe /I{A4D04B1A-DCF1-4C8C-8FFE-07D145812742}

to be this:

MsiExec.exe /X{A4D04B1A-DCF1-4C8C-8FFE-07D145812742}
Reply Re: Anyone have a script to remove all the HP/Compaq agents after conversio Feb 6, 2007 6:53 AM
in response to: SlickBag
Click to view SlickBag's profile Hot Shot SlickBag 205 posts since
Jul 25, 2005
And change:

C:\Program Files

To:

%PROGRAMFILES%
Reply Re: Anyone have a script to remove all the HP/Compaq agents after conversio Feb 6, 2007 7:08 AM
Click to view LTOPPIN's profile Novice LTOPPIN 7 posts since
Feb 27, 2006
I'm working on a new conversion today. I'll get the batch file with your updates a try.

I'll post back here on how things turn out.

LT.
Reply Re: Anyone have a script to remove all the HP/Compaq agents after conversio Feb 6, 2007 7:52 AM
in response to: LTOPPIN
Click to view SlickBag's profile Hot Shot SlickBag 205 posts since
Jul 25, 2005
Great! I have not tried out Jase's step for removing the HP Network Configuration tool yet. So you may want to try that out as well.
1 2 3 ... 5 Previous Next
Actions