[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4073
  • Last Modified:

How can SCCM automatically reinstall software that has been removed?

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.
0
midwestexp
Asked:
midwestexp
  • 2
  • 2
1 Solution
 
NJComputerNetworksCommented:
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.


0
 
midwestexpAuthor Commented:
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?
0
 
NJComputerNetworksCommented:
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.  http://www.systemcentercentral.com/Details/tabid/147/IndexID/19568/Default.aspx

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"
0
 
midwestexpAuthor Commented:
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.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now