Skip to main content
Solved

Script to Completely Remove SapphireIMS Agent from 6,000 Devices

  • November 3, 2025
  • 2 replies
  • 48 views

Hello,

We need a verified script to completely remove the SapphireIMS Agent from our environment. This will be deployed via SCCM to ~6,000 Windows endpoints, so the script must be non-interactive and safe to run under the System context.

Current facts:

  • Install path (identical on all devices):
    C:\Program Files (x86)\SapphireIMSAgent\

  • A residual process named SapphireBackupTray.exe remains running after the current uninstall attempt.

  • Relevant services are present and running on all endpoints.

Requirements for the script:

  1. Stop and remove all Sapphire-related services and processes (including tray processes).

  2. Remove all associated registry keys and startup entries.

  3. Delete the installation folder and all files (including locked files).

  4. Run silently with administrative/System privileges (suitable for SCCM deployment).

Please provide the verified script (and any recommended SCCM detection method or pre-deployment checks). If you have a preferred rollback or safety step to include, mention it.

Best answer by ScottBain

Hi ​@ManafOmari01 

 

I have attached the only available script for uninstalling Windows Agent. This .bat script will remove all the agent references etc. Execute the .bat as admin.


It is confirmed as valid for versions up to 25R1. Future versions may not work, in that case you would need to log a support ticket.

 

We suggest you validate this in the test environment before any production environments.

 

If you need to edit the script to further accommodate your requirements, please ensure proper testing.

 

Any further questions regarding this would be more suitable through a support ticket.

 

Kind regards,

2 replies

Forum|alt.badge.img+7
  • Do Gooder (Employee)
  • 7 replies
  • Answer
  • November 5, 2025

Hi ​@ManafOmari01 

 

I have attached the only available script for uninstalling Windows Agent. This .bat script will remove all the agent references etc. Execute the .bat as admin.


It is confirmed as valid for versions up to 25R1. Future versions may not work, in that case you would need to log a support ticket.

 

We suggest you validate this in the test environment before any production environments.

 

If you need to edit the script to further accommodate your requirements, please ensure proper testing.

 

Any further questions regarding this would be more suitable through a support ticket.

 

Kind regards,


  • Author
  • 5 replies
  • November 5, 2025

Hi Scott,

Thank you for sharing the script and for the clarification. I appreciate your help and the detailed instructions.
I’ll make sure to validate it in the test environment before proceeding further.

Thanks again for the support!

Best regards,
Manaf