Jeffery
Tue Dec 04 05:28:20 PST 2007
You can use the FileSystemObject to check if a folder exists, assuming you
know its name. But that doesn't help you if the user is savvy enough to do
a custom install. You could read the uninstall key of the registry and get
a list of all apps, assuming the ones you are looking for register
themselves properly. If this is really an issue, your best solution is to
use Software Restriction Policies. It takes some work to get them setup,
but in the long run this is the best way to manage this situation. If the
problem apps use known network ports you might be able to block them at your
network edge, or perhaps even with a local firewall on the desktop.
You don't want to query installed apps each time the computer boots as the
WMI class for installed apps takes a long time to run and can be resource
intensive. Of course, if users don't have admin rights they can't install
anything anyway, but I'm guessing that isn't an option for you.
--
Jeffery Hicks
Microsoft PowerShell MVP
http://www.scriptinganswers.com
http://www.powershellcommunity.org
Now Available: WSH and VBScript Core: TFM
Coming Soon: Windows PowerShell: TFM 2nd Ed.
<starsailor28@gmail.com> wrote in message
news:fe761f4a-cbe8-43b3-aefb-ecb96bd19e75@n20g2000hsh.googlegroups.com...
> Hi,
> i am an administrator with limited resources and would like to know
> how i can detect installed applications(like p2p applications) in
> client computers in network . We have a windows 2003 domain and all
> clients are joined to it. I wanted to use the gpinventory tool from
> microsoft and integrate the script into it but that is not important
> as long as someone guides me of an alternate technique to detect the
> folders.
> Thanks in advance and any help is appreciated.
> Regards,
> Scorp