Compartilhar via


Who depends on me?

The component help in XPe SP2 was greatly improved, and now enables customers to find things such as what file and registry resources a particular component has, what dependencies it has on other components as well as what interfaces are available (if applicable). The one piece of information that is not readily available to customers is what the reverse dependencies are (namely, what components depend on the component I am interested in?).

As a simple guide I have written a basic script that allows you to view this information for SP2 components. It can be downloaded from here. The script requires you to supply the server name, the component name you are querying (in quotations if the name is more than one word e.g. “Internet Explorer”) and the database user name and password. It will return a list of components that depend on the component you are querying (including security updates, if you have them installed in your database).

The script is not supported and can be tweaked to suit as needed, but as with anything that interacts with the database I would suggest that you back up your database. Below is the script with the "/?".

d:\work>revdeplookup3.vbs /?
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All right

ReverseDep.vbs <servername> <componentName> <userName> <password>
e.g. ReverseDep.vbs buka "Internet Explorer" sa Password

- Lynda

Comments