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
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.
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.
Thanks - I'll try it out!
SlickBag
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!
Will do!
SlickBag
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.
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!
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
I'll take a look at it when I get in tomorrow...
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...
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[/i]
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:\PROGRA1\COMMON1\INSTAL1\PROFES1\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:\PROGRA1\COMMON1\INSTAL1\engine\6\INTEL31\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
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
Actually, change this:
MsiExec.exe /I\{A4D04B1A-DCF1-4C8C-8FFE-07D145812742}
to be this:
MsiExec.exe /X\{A4D04B1A-DCF1-4C8C-8FFE-07D145812742}
And change:
C:\Program Files
To:
%PROGRAMFILES%
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.
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.
Looks like SNETCFG might be a solution to removing the HP Network Conifiguration tool...I just can't seem to find the INF for it. Heres an example of how they remove the MS Netware client:
I haven't used snetcfg, but netcfg should acomplish your goal.
NETCFG.EXE -v -u cq_cpqteam
NETCFG.EXE -v -u cpq_trmibdrv
Cool. Except, NETCFG is MIA. Can't seem to locate a copy of it. I think its part of WinPE - but not certain. So that's when I found a copy of snetcfg floating around available for dl on the net.
How about netsh?
OK - I got SNETCFG working (thanks to the previous post; the same command line worked for SNETCFG as it did for NETCFG):
snetcfg -v -u cq_cpqteam
snetcfg can be downloaded at http://www.jsifaq.com/docs/files/76011/snetcfg.zip
I will be posting an updated BAT file shortly.
Thanks all so far for the awesome feedback and help. This is working out quite nicely so far.
SlickBag