troubleshooting Question

Search for and Delete .exe and containing folder

Avatar of Lionel MM
Lionel MMFlag for United States of America asked on
Scripting LanguagesWindows BatchVB Script
26 Comments2 Solutions514 ViewsLast Modified:
Is it possible to run a script (preferably in batch file but whatever will work) to search for a particular .EXE and if found to delete it and then, if possible to discover which folder it is in and delete that folder too? I run a Windows domain and as users get more and more sophisticated they are finding ways to install programs that management has told them not to install (programs like iTunes, Safari browser). Initially it was easy to control because most users used the default install locations but as they noticed it was been removed (via a logon script) they have started installing it in non-default locations and we found one users who choose to install it on his external drive and this is the type of behavior I am trying to stop by finding a known exe and then deleting it and its containing folder? Possible?
ASKER CERTIFIED SOLUTION
akahan

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 26 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 26 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros