• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
<Here is how to use Windows Security to Protect HP PCs Click here to view the instructions!
Check out our WINDOWS 11 Support Center info about: OPTIMIZATION, KNOWN ISSUES, FAQs, VIDEOS AND MORE.
HP Recommended

For the current version (5.3.1), this kills at least HP Image Assistant GUI that appears after the installer runs, which is the only thing that prevents scripted use of the cmd line version post that, until closed. I am going to just refocus the script window over the File Explorer window to the cmd/hui file, as the PC is restarted at conclusion of the rest of my script.

 

[system.collections.arraylist]$ToKillWindows = @("hpimageassistant.dll")

 

do
{

  foreach($ToKillWindow in $ToKillWindows)
  {
    $Process = get-process -name $ToKillWindow -erroraction silentlycontinue

 

    if($Process)
    {
      try
      {
        stop-process $Process
      }
      catch
      {
        #Do logging here
      }

 

     $i++

    }

 

    start-sleep -seconds 5

  }

}
until($i -eq $ToKillWindows.count)

† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.