Script to uninstall application from all computers in network

Posted on 2007-07-23
Last Modified: 2008-01-09
I have to remove an application from all computers in my network and I want to see if I can automate it so that I don't have to go machine by machine.  So I was thinking that maybe a script when they log in could do the job, the thing is I'm not fluent in the script creating proccedure.  the program is in add/remove programs, but does not has an uninstall of it's own.  Any tips on how to go about this or anybody has a script that can be used for this?
Question by:msomohano
    1 Comment
    LVL 12

    Accepted Solution


    Have you tried using add/remove to uninstall the app on one machine? Assuming it did unistall check the following registry key on another machine.

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"app name"
    and look at/for the following three keys
    "UninstallString"="\"C:\\Program Files\\AppName\\APP.EXE\" /uninstall"
    "QuietUnistallString"="C:\\PROGRA~1\\AppName\\App.exe\" /uninstall /SILENT

    That should help in locating the uninstall for the application and hopefully a quiet uninstall.

    From there creating and running a simple batch file with the QuietUninstall or Unistall string will start that uninstall(keep in mind dos naming 8/3(C:\PROGRA~1).  

    Creating a batch file is simple enough using notepad enter your command line

    c:\progra~1\applic~1\app.exe /unistall

    and save the file with a bat extension instead of txt (be sure you have "view file extensions" enabled.)

    However each app is different and not all have command line switches to automate them using the QuitUninstall(meaning you may still have to click thru the uninstall)

    Start with that and see if it helps if not maybe I can you further with another option to automate it.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
    Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now