Description

Seeing as how the VBScript was so popular the other day I thought I’d create a HTA GUI to remotely uninstall software.

This HTA will retrieve a list of installed software on a remote PC and give you the option to uninstall / silently uninstall any items as required. You can also export the list to an xls / csv / html file.

Note I have decided to use PSExec or Rctrlx for this HTA becuase I prefer it to the WMI option as used before. For this to work you will need either PSExec or Rctrlx in your System Path (if you aren’t sure whether you have these the HTA will let you know and give the the links to download them if needs be!)

I have now (v1.7) added an update to allow the command line argument for computer name, since it has been requested quite a few times! The format to specify a PC1 as the computer name would be:

“c:\scripts\Uninstall Utility.hta” PC1

It should also now show a FULL list of apps (inc those on 64-bit PCs), thanks to the help of Chris128 and his How To @ http://community.spiceworks.com/how_to/show/2238 so if you like this app even more now go and Spice that up!

You MUST save it with a .HTA extension or it WILL NOT WORK!

Let me know what you think about this HTA in the comments and please please please rate it!

Thank you for the great comments guys!

Source Code

script.txt (53.7 KB)

Screenshots

259 Spice ups

Awesome script Stubar. What resources did you use to learn scripting?

Great! I am humbled by your scripting prowess!! LOL

@Gearhead89 thanks for the comment! And to answer your question I mostly learn by doing and by looking at other examples of scripts, a few scripting sites in my favourites are: www.w3schools.com www.devguru.com http://blogs.technet.com <-love this! http://msdn.microsoft.com www.activexperts.com Saying that, my favourite site for scripts has to be http://community.spiceworks.com/scripts/ it rocks!! @Jamie9247 Cheers for the comment and the star rating, it’s what keeps me scripting! :slight_smile: And FWIW, screenshot added! Sorry if I don’t reply to any comments in the next week am off to (not so) sunny Torquay tomorrow!

awesome - will make life a lot easier - teamed with an alert if unauthorized software is installed - end users beware !!! i can do it behind your back now :slight_smile:

working great

very good job! thanks a lot

This is very cool. Great job!

Fantastic! Would it be difficult to add the ability to sort by install date? Often one needs to uninstall something that was just installed recently. If the answer is “yes, but I don’t have time for that now”, if you can mention the methods/what to look for I’ll try to do it myself ( I don’t have very much scripting experience). Thanks!

NEW VERSION UPDATE ALERT I have now updated the app to version 1.5, and as per paolotto’s excellent request it now allows sorting asc / desc of all 4 rows (Name / Vendor / Version / Install Data). And @paolotto, yes it was quite difficult to implement the sorting, which was why I left out out in the first place, (because I wasn’t sure how to do it!) But I worked it out now and added it in! I have also made some other changes as below: Change Log: * Added total number of software items to bottom of app * Added version number to top of app * Changed Computer Name field to be disabled as soon as Show button is clicked * Changed cursor to hourglass during operations New Functionality * Added Sorting capabilities to all headers - click on row header to sort ascending / descending, a great idea (which I wasn’t originally sure how to implement, hence why it was left off the initial release) by request of paolotto.

1 Spice up

MINOR VERSION UPDATE TO VERSION 1.6 Change Log * Added Uninstall / Silent Uninstall strings to all export options - requested by Terrence1882 on another script

Whoa! A very quick fix and even quicker response. I wasn’t expecting you to respond that fast with the fix. This works perfectly for me. But if you could add the Search Range function just like the options in your PC Management Utility along with the ability to resize the window (my Windows 7) is not displaying properly. Once again, thanks for the excellent program stubar.

Terrence, Are you unable to use the buttons on this app in Windows 7? Could you please send me a screenshot of the issue so I can resolve it? With the Search Range function it’s more trouble than it’s worth to be honest so I’ve decided not to add it to this app. But then I felt a little bad for not being able to help so I decided to add this function to the Computer Management Utility as per your original request (it won’t work on the export to text though!) Hope this will help you in your quest to export Uninstall strings! Stu

Nice!

Thanks, very nice. Great that you take the tme to build something like this and share it.

Perfect! Thanks

Thanks for the comment ppls, tis always nice to get praise for something you have written, which is one of the main reasons I like to share it, plus if it’s useful for me chances are someone else may find it useful too! Makes me feel like an actual programmer (instead of just a System’s Admin who’s company decides not to use any of his scripting at all!)

This looks PIMP I will be sure to try it out later today :]

This is one sweet little app, used it several times already to remove unwanted antivirus products (McAfee Security Scan Plus…) - and also just as a quick check to see who’s logged on to a particular machine. Thanks a lot Stubar, you’re saving me time.

Thanks a ton. Its Awesome script Stubar. Nice work!!