Tuesday, July 9, 2013

Uninstall BMC Remedy 7.x via SCCM 2012

I'm obviously working late tonight.  Here's another tricky one: Remedy 7.x.  We recently upgraded to Remedy 8.1, and yes we're still way behind.  But here we are.  With 8.X we didn't license for thick clients, we're all web based now.  And what's left after the upgrade is this Remedy client that doesn't do anything left on (according to my collection) 782 machines.  I'm not going to uninstall that many manually.

So you need two files.  1) Options.txt, and 2) UninstallRemedy7.bat.  Put them both in the same folder and make it your soufce directory for SCCM.

Options.txt
--------------
-P installLocation=C:\Program Files (x86)\BMC Software\ARSystem
-U productARSuiteKit


UninstallRemedy7.bat (the following is one line)
---------------------------
start "" "c:\Program Files (x86)\BMC Software\ARSystem\UninstallBMCARSystem\uninstall.exe" -i silent -DOPTIONS_FILE=\\<hostserver>\software\Uninstall_Remedy_7\options.txt

That's it.  Your program just points to the .bat and is ran as admin.  And just because I have a few minutes, here is the query for the collection that I'm using:

select
SMS_R_SYSTEM.ResourceID,
SMS_R_SYSTEM.ResourceType,
SMS_R_SYSTEM.Name,
SMS_R_SYSTEM.SMSUniqueIdentifier,
SMS_R_SYSTEM.ResourceDomainORWorkgroup,
SMS_R_SYSTEM.Client
from
SMS_R_System inner join
SMS_G_System_INSTALLED_SOFTWARE on SMS_G_System_INSTALLED_SOFTWARE.ResourceID = SMS_R_System.ResourceId
where
SMS_G_System_INSTALLED_SOFTWARE.ProductName like "BMC Remedy Action Request System 7%"

Enjoy,

--Dave

Also worth a note, 7.x installs to program files (x86) vs. 8.x which installs to program files in every case I've looked at (our Dev's have the console).  So even though the above bat/txt would uninstall 8.x, it's hard coded to (x86) so it 'shouldn't'.  I'll find out tonight :)

No comments:

Post a Comment