Fix: SecurityHealthSystray.exe Bad Image Error

When using your computer, you may come across the “SecurityHealthSystray.exe Bad Image Error.” This error typically occurs when the SecurityHealthSystray.exe file, a component of Windows Defender, encounters issues while trying to execute certain functions. It can be frustrating and may disrupt your computer usage.

9 quick and easy ways to fix the SecurityHealthSystray.exe Bad Image Error.
9 quick and easy ways to fix the SecurityHealthSystray.exe Bad Image Error.

Before we proceed, let’s understand what SecurityHealthSystray.exe is. SecurityHealthSystray.exe is an executable file associated with Windows Defender, the built in antivirus and security solution provided by Microsoft. This file is responsible for managing the security and health notifications in the Windows system tray. It plays a crucial role in ensuring the overall security of your computer.

Common Causes of the Bad Image Error

The Bad Image Error related to SecurityHealthSystray.exe can occur due to various reasons. Some common causes include:

  • Corrupted or missing system files.
  • Outdated Windows or security software.
  • Malware or virus infections.
  • Application conflicts or compatibility issues.

Now that we understand the causes let’s explore the troubleshooting steps to fix the error.

1. Run SFC and DISM Scans

The System File Check (SFC) and Deployment Image Servicing and Management (DISM) scans are two built in Windows tools that can help fix system file corruption issues. Running both the SFC and DISM scans can help fix corrupted system files that can be causing the “SecurityHealthSystray.exe Bad Image Error.” These scans are important troubleshooting steps and can resolve a variety of system issues. Here are the steps to run these scans:

  1. Open Command Prompt as an administrator. Click on the Windows Key, and type “Command Prompt,” right click on it, and choose “Run as administrator.”
    Open Command Prompt as an administrator.
    Open Command Prompt as an administrator.
  2. To start the System File Check (SFC) scan, type the following command into the Command Prompt window and click Enter: 
    SFC /scannow
    Type "SFC /scannow" and press Enter.
    Type “SFC /scannow” and press Enter.
  3. The scan will start and the system will automatically search all protected system files and fix any errors it detects. The process could take some time to finish.

Once the SFC scan is finished, you will see the scan results. If any errors were found and successfully repaired, you will see a message stating, “Windows Resource Protection found corrupt files and successfully repaired them.”

After running the SFC scan, it is recommended to run the DISM scan to ensure the integrity of the Windows image.

  1. In the same Command Prompt window, type the following command and press Enter to run the DISM scan:
    DISM /Online /Cleanup-Image /RestoreHealth
    Type "DISM /Online /Cleanup-Image /RestoreHealth" now and press Enter.
    Type “DISM /Online /Cleanup-Image /RestoreHealth” now and press Enter.
  2. DISM will check for any corruption in the Windows image and attempt to repair it by downloading necessary files from Windows Update. This process may take some time, so be patient and ensure a stable internet connection.
  3. Once the DISM scan is complete, restart your computer to apply any repairs that were made during the scan.

Note: Remember to run these scans as an administrator and allow them to complete without interruption.

2. Re-Registering the DLL File

Re-registering the DLL (Dynamic Link Library) files can help resolve the bad image error by ensuring that the DLL files are properly registered in the system. Make sure to run the Command Prompt as an administrator to have the necessary permissions for registering and unregistering DLL files. Here are the steps to re-register DLL files:

  1. Open Command Prompt with administrator privileges again.
  2. In the Command Prompt window, type the following command and press Enter: 
    regsvr32 /u SecurityHealthSSO.dll
    Type the following command to re-register the dll file.
    Type the following command to re-register the dll file.
  3. After that, run the “regsvr32 SecurityHealthSSO.dll” command to register the DLL file.
    regsvr32 SecurityHealthSSO.dll
  4. After running the above commands, you should see a message confirming the successful registration of the DLL file.

3. Updating Windows

Updating Windows ensures that you have the latest bug fixes, patches, and security enhancements. This can help resolve compatibility issues and address vulnerabilities that may be causing the issue. Here are the steps to update Windows and security software:

  1. Press the Windows Key and open the Settings menu by clicking on the gear icon in the Start menu.
  2. In the Settings window, click on Update & Security.
  3. Select Windows Update from the left sidebar.
  4. Click on the Check for updates button. Windows will then check for available updates.
    Open Windows Update and Click on the Check for updates button.
    Open Windows Update and Click on the Check for updates button.
  5. If any updates are found, click on the Download and Install button to begin the update process. It may take some time for the updates to download and install, depending on their size and your internet connection speed.
  6. Once the updates are installed, restart your computer if prompted.

It is important to regularly check for and install updates to keep your system and security software up to date for optimal performance and protection against threats.

4. Reset Windows Security App

Resetting the Windows Security app can resolve any configuration issues or corrupted settings. By restoring the app to its default state, you can ensure that it functions properly and does not interfere with the execution of Security Health System tray exe.

  1. Left click the Start button, type “Windows PowerShell” in the search box.
  2. Right click on Windows PowerShell and select Run as Administrator.
  3. In the Windows PowerShell window, type the following command exactly as shown below and press Enter:
     Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage
    In the Windows PowerShell window, type the following command to reset the Windows Security app.
    In the Windows PowerShell window, type the following command to reset the Windows Security app.

The command will execute. Now wait a few moments for the Appx Package to be reset and your Windows Security settings to be restored. After restarting your system, check to see if the SecurityHealthSystray service is functioning properly.

5. Installing the latest Visual C++ Redistributable

By installing the latest Visual C++ Redistributable, you ensure that the required runtime libraries are installed on your system, which can resolve compatibility issues. These libraries are essential for running applications that depend on Visual C++. Follow these steps to download and install the latest Visual C++ Redistributable:

  1. Visit the official Microsoft website to download the latest Visual C++ Redistributable package. You can find the downloads page by searching for “Visual C++ Redistributable” in your browser.
  2. On the Microsoft downloads page, look for the most recent version of the Visual C++ Redistributable that matches your system architecture (x86 for 32-bit systems and x64 for 64-bit systems). Click on the download link to start the download.
  3. Once the download is complete, locate the downloaded file and double click on it to run the installer.
  4. Follow the prompts in the installer window to proceed with the installation. Make sure to read and accept the license terms.
    Follow the prompts in the installer window to proceed with the installation.
    Follow the prompts in the installer window to proceed with the installation.
  5. During the installation, you may be prompted to choose the installation location or select additional features. Leave the default settings as they are unless you have specific requirements.
  6. Click on the “Install” button to begin the installation process. The installer will extract and install the necessary files on your system.
  7. Once the installation is complete, you will see a confirmation message. Click on the “Finish” button to exit the installer.

6. Perform a Clean Boot

Performing a Clean Boot can help fix the bad image error by eliminating conflicts caused by third party software or services that may interfere with the proper execution of Security Health System tray.

When you perform a Clean Boot, you start your computer with a minimal set of drivers and startup programs, disabling non essential software and services. By doing so, you can identify whether a third party program or service is causing the error. Here are the steps to perform a Clean Boot:

  1. Press the Windows Key + R to open the Run dialog box.
  2. Type msconfig and press Enter. This will open the System Configuration window.
    msconfig
    Type msconfig and press OK.
    Type msconfig and press OK.
  3. In the System Configuration window, go to the Services tab.
  4. Check the box that says Hide all Microsoft services. This will hide the essential services provided by Windows.
  5. Click on the Disable all button. This will disable all non Microsoft services.
    Go to the Services tab, press Hide all Microsoft services, select Disable all and press OK.
    Go to the Services tab, press Hide all Microsoft services, select Disable all and press OK.
  6. Next, go to the Startup tab and click on Open Task Manager.
  7. In the Task Manager window, you will see a list of startup programs. Right click on each program and select Disable to disable all startup programs. Make sure to disable all programs on the list.
    Right click on each program and select Disable to disable all startup programs.
    Right click on each program and select Disable to disable all startup programs.
  8. Close the Task Manager and go back to the System Configuration window.
  9. Click on Apply and then click on OK.
  10. Restart your computer for the changes to take effect.

After performing a Clean Boot, your computer will start with only essential Microsoft services and no additional startup programs. This helps isolate any software conflicts that will be causing the error.

If the error does not occur after performing a Clean Boot, you can gradually enable services and startup programs one by one to identify the specific program or service causing the conflict. This process will help you pinpoint the source of the error and take appropriate action, such as updating or reinstalling the problematic software.

Remember to undo the Clean Boot configuration once you have identified the cause of the error. In the System Configuration window, simply uncheck the Hide all Microsoft services box, enable necessary services, and re enable startup programs.

7. Windows System Restore

When dealing with errors like the bad image one, a potent tool we can utilize is the Windows System Restore feature. This utility allows us to roll back our system state, essentially turning back time on our system files, installed applications, Windows Registry, and system settings. If this bad image error sprung up as a consequence of recent system modifications, System Restore might help by undoing these changes.

  1. Press the Windows key + S. Type “System Restore” and select “Create a restore point”. This will open the System Properties window.
    Type "System Restore" and select "Create a restore point".
    Type “System Restore” and select “Create a restore point”.
  2. Within the System Properties window, there’s a “System Protection” tab. Under this, locate and click on the “System Restore…” button to start the process.
    locate and click on the "System Restore..." button to start the process.
    locate and click on the “System Restore…” button to start the process.
  3. The system will then prompt you to choose a restore point. These points are marked with dates. Your task is to select one that predates before the SecurityHealthSystray.exe bad image error occured.
  4. After selecting your preferred restore point, the system will seek your confirmation. Once you verify your choice, the system restore process will start off. This process may take a while, depending on your storage disk speed.
  5. Once system restore process finishes, make sure to restart your computer.

It’s crucial to note that while System Restore won’t impact your personal files, it will erase apps, drivers, and updates installed after the restore point was made. As a best practice, ensure you have backed up any important data prior to proceeding with a system restore.

8. Run a Antivirus scan

The Windows Security antivirus scan is a built in feature in Windows designed to detect and remove malicious software. Running this scan can help if the error was caused by a malware or virus that’s infecting your system files.

  1. Press the Windows key + I to open the Settings app. Navigate to “Update & Security,” then click on “Windows Security.”
    Press the Windows key + I to open the Settings app. Navigate to "Update & Security," then click on "Open Windows Security."
    Press the Windows key + I to open the Settings app. Navigate to “Update & Security,” then click on “Open Windows Security.”
  2. Within the Windows Security window, select “Virus & threat protection.”
  3. You will see a “Quick scan” button under “Current threats.” However, for a more thorough scan, it’s advisable to select “Scan options.”
  4. Under “Scan options,” choose “Full scan” for a comprehensive check of all files and programs. Then, click on “Scan now.”
    Under "Scan options," choose "Full scan" for a comprehensive check of all files and programs. Then, click on "Scan now."
    Under “Scan options,” choose “Full scan” for a comprehensive check of all files and programs. Then, click on “Scan now.”
  5. If the scan detects any threats, you’ll be prompted to take action. Depending on the threat level, you might opt to remove, quarantine, or ignore the threat. Generally, removing or quarantining is the safest option.
  6. After the scan and removal process is complete, restart your computer. This should resolve the SecurityHealthSystray.exe bad image error if it was caused by a virus or malware.

Remember to keep your antivirus definitions updated to ensure it can accurately detect and remove the latest threats. Regular scans also help to keep your system healthy and free from harmful elements.

9. Reinstall Windows

If none of the above mentioned methods worked, Reinstalling Windows is the last resort to fix this error. As this error could be due to a corrupt copy of your current Windows installation. Reinstalling Windows will completely reset your computer, wiping out all files, applications, and settings, essentially starting from scratch. 

So make sure you backup all your important data and files before reinstalling Windows. We have a detailed guide on our website about “How to Clean Install Windows“, so follow that along and you should be good.

ABOUT THE AUTHOR

Muhammad Zubyan


Muhammad Zubyan is a certified Google IT Support Professional with over 7 years of extensive experience. He has worked on more than 1500 computers, gaining valuable insights that enable him to detect and troubleshoot any complicated root cause of Windows-related issues and errors. In addition to managing Appuals as a Senior Editor, he is currently developing his own Game Optimization program that caters to both gamers and casual users alike.