Hello @RH ,
Thank you for posting here.
Based on the description above, as I understand, these servers and windows 10 are domain-joined machines.
How did you install malicious software on these machines?
Is it installed manually or through a batch tool or via GPO?
If it is installed via GPO, we can uninstall it via GPO.
If it is installed manually, now we want to uninstall it in batches, maybe we need a script or a command to uninstall it, then uninstall them via startup script GPO or shutdown script GPO.
I am sorry, we are not experts in scripting, here is a Scripting Blog link, there are many sample scripts, you can try to check if any script is helpful to you.
Scripting Blog
https://devblogs.microsoft.com/scripting/tag/active-directory/
And we hope that some experts in scripting can provide you with further help, too.
Hope the information above is helpful.
Should you have any question or concern, please feel free to let us know.
Best Regards,
Daisy Zhou
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.