Close application integration(s) via script

Sometimes we need to deliver a bugfix to our users. This may be an updated dll or two. In order to get the current dll replaced, we need to close Application Integration(s). This can be done by taskkill /IM AMHookTray.exe /T /F. However, after doing so, the Application Integration will not start up again. It fails with "Application Integration is already running".


This does not happen if we install the updated dll manually by first closing Application Integration(s) from the UI "Close" command. Closing like this is somehow different compared to taskkill. There is no problem to start the Application Integration after update if it was closed this way.


Anyway, in corporate environments users do not have the rights to perform such updates. Program Files is read only. We must mange these updates via SCCM automated scripting. My with is a commad line tool to close the AMHookTray(s) in proper manner so that they can be restarted after the update has taken place.

  • Vesa Peltonen
  • Sep 18 2024
  • Needs review
  • Attach files