Quantcast
Channel: On-Site Tech Support » XP
Viewing all articles
Browse latest Browse all 11

Disable or Uninstall Business Contact Manager with Kaseya

$
0
0

Business contact manager is a huge pain in the butt and I have yet to meet anyone who uses it.  Recently we had a client that needed to roll out 23 new computers but they all had Business Contact Manager installed on them.  We used this Kaseya script to uninstall it. 

This will only remove the application not all the associated applications (ie SQL Express).

 
  <?xml version=”1.0″ encoding=”utf-8″ ?>
- <ScriptExport xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema” xmlns=”http://www.kaseya.com/vsa/2008/12/Scripting“>
- <Procedure name=”Uninstall BCM for Outlook 2007” treePres=”3“>
- <Body description=”Remove Business Contact Manager for Outlook 2007. This will only remove the application not all the associated applications (ie SQL Express).“>
- <If description=”Remove Business Contact Manager for Outlook 2007. This will only remove the application not all the associated applications (ie SQL Express).“>
- <Condition name=”TestRegistryKey“>
  <Parameter xsi:type=”StringParameter” name=”Path” value=”HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\{B32C4059-6E7A-41EF-AD20-56DF1872B923}” />
  <Parameter xsi:type=”EnumParameter” name=”Condition” value=”Exists” />
  </Condition>
- <Then>
  <Statement description=” ” name=”UseCredential” continueOnFail=”false” />
- <Statement description=” ” name=”ExecuteFile” continueOnFail=”false“>
  <Parameter xsi:type=”StringParameter” name=”Path” value=”msiexec.exe” />
  <Parameter xsi:type=”StringParameter” name=”Arguments” value=”/x{B32C4059-6E7A-41EF-AD20-56DF1872B923} /qn” />
  <Parameter xsi:type=”EnumParameter” name=”ExecuteAccount” value=”User” />
  <Parameter xsi:type=”BooleanParameter” name=”WaitComplete” value=”True” />
  </Statement>
- <Statement description=”” name=”WriteScriptLogEntry” continueOnFail=”false“>
  <Parameter xsi:type=”StringParameter” name=”Comment” value=”Business Contact Manager for Outlook 2007 has been removed” />
  </Statement>
  </Then>
- <Else>
- <Statement description=”” name=”WriteScriptLogEntry“>
  <Parameter xsi:type=”StringParameter” name=”Comment” value=”Business Contact Manager for Outlook 2007 not installed on this system” />
  </Statement>
  </Else>
  </If>
  </Body>
  </Procedure>
 
  </ScriptExport>
 
If you would prefer to disable it instead of uninstall it you can use this script instead. 
 
  <?xml version=”1.0″ encoding=”utf-8″ ?>
- <ScriptExport xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema” xmlns=”http://www.kaseya.com/vsa/2008/12/Scripting“>
- <Procedure name=”Disable BCM for Outlook 2007” treePres=”3“>
- <Body description=”Disable Business Contact Manager for Outlook 2007. This will only disable the application not all the associated applications (ie SQL Express).“>
- <If description=”Disable Business Contact Manager for Outlook 2007. This will only disable the application not all the associated applications (ie SQL Express).“>
- <Condition name=”TestRegistryKey“>
  <Parameter xsi:type=”StringParameter” name=”Path” value=”HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Outlook\Addins\Microsoft.BusinessSolutions.eCRM.OutlookAddIn.Connect.1” />
  <Parameter xsi:type=”EnumParameter” name=”Condition” value=”Exists” />
  </Condition>
+ <Then>
  <Statement description=”” name=”UseCredential” continueOnFail=”false” />
- <Statement description=”Set the specified registry value – Regedit displays keys as folders and values as documents.” name=”SetRegistryValue” continueOnFail=”false“>
  <Parameter xsi:type=”StringParameter” name=”RegistryPath” value=”HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Outlook\Addins\Microsoft.BusinessSolutions.eCRM.OutlookAddIn.Connect.1\LoadBehavior” />
  <Parameter xsi:type=”StringParameter” name=”Value” value=”1” />
  <Parameter xsi:type=”EnumParameter” name=”DataType” value=”Integer” />
  </Statement>
- <Statement description=”” name=”WriteScriptLogEntry” continueOnFail=”false“>
  <Parameter xsi:type=”StringParameter” name=”Comment” value=”Business Contact Manager for Outlook 2007 has been disabled” />
  </Statement>
  </Then>
- <Else>
- <Statement description=”” name=”WriteScriptLogEntry“>
  <Parameter xsi:type=”StringParameter” name=”Comment” value=”Business Contact Manager for Outlook 2007 not installed on this system” />
  </Statement>
  </Else>
  </If>
  </Body>
  </Procedure>
  </ScriptExport>

Viewing all articles
Browse latest Browse all 11

Trending Articles