How can SCCM automatically reinstall software that has been removed?

Posted on 2010-01-07
Last Modified: 2013-11-21
In SCCM, how do you go about setting up a a package to run every time SCCM detects that the software is no longer installed?

Currently, SCCM installs package based on collection of PCs that don't have a certain application. If you remove the app, SCCM never runs the package again automatically.
Question by:midwestexp
    LVL 33

    Expert Comment

    1) I would make sure that the collection is dynamic (meaning query based),  This way the collection will be updated when a client either has the application installed or uninstalled

    For example, the collection might look for Adobe being installed.  If installed, the computer is NOT added to the collection.  In this way, only computer missing the Adobe application will be in the collection.  and because the collection is query based, it is dynamic and will get updated on the schedule that you choose.

    2) I would configure the advertisement to run once a week (or a some re-occuring interval) - slower then the collection query.

    In this way, the package will install to the clients in the collection each week...

    summary:  in theory, computers that had the adobe package installed but later removed it, will be placed in the collection for package installation... in time, they will get the package automatically re-installed.


    Author Comment

    Yep, collection is query based on whether the software is installed or not.
    In regards to the other setup, is there a quicker way? By that I mean say the app is installed this morning, uninstalled this evening, and then have it install again by tomorrow. I was pretty sure you're not really supposed to have the software inventory run that frequently but are there really any adverse effects to doing it daily?
    LVL 33

    Accepted Solution

    Yes, there are a couple more approaches you can use...

    1) create a package that first checks to see if the software is installed.  If it is found to be installed, exit the package.  otherwise, install the package.  This rely's on code to be placed in the package itself to check for installation before trying to install.  Advertise this package to the collection on a schedule every 6 hours (example).  In this way, the software will attempt to install every 6 hours..but will only actually install if the software is missing on the client.  This method does not require software inventory to update the collection.

    2) I think you can use Desired Configuration management to check for this software installation.

    Though, I am not yet familiar enough with DCM in SCCM to know exactly how to perform an action (like install software) if DCM determines that the software is not present.  I suspect, however, it might be possible to perform an action if DCM find the computer not compliant to a policy - a policy like "adobe software missing"

    Author Comment

    The first option seems to be what I am after for a quick fix. Should be easy enough to make a script to check for the presence of the application. And as long as I only deploy it to the query collection I should be good. Thanks for the great solutoins NJ. Will have to check DCM when time permits for possibly a more permanent solution.

    Featured Post

    Want to promote your upcoming event?

    Is your company attending an event or exhibiting at a trade show soon? Are you speaking at a conference? Spread the word by using a promotional banner in your email signature. This will ensure your organization’s most important contacts are in the know.

    Join & Write a Comment

    Problem Description: Actually I found the below issue with some customers after migration from SMS 2003 to SCCM 2007 and epically if they change site code, some clients may appear in the console with old site code, plus old sites still appearing …
    Welcome to my series of short tips on migrations. Whilst based on Microsoft migrations the same principles can be applied to any type of migration. My first tip is around source server preparation. No migration is an easy migration, there is a…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    728 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

    20 Experts available now in Live!

    Get 1:1 Help Now