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

Re: vbs script to detect folder(to detect installed applications like torrent)` by Jeffery

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


Re: vbs script to detect folder(to detect installed applications like torrent)` by Seyfullah

Seyfullah
Thu Feb 21 10:00:46 CST 2008

This would help ;

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.CreateTextFile("c:\software.tsv", True)

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colSoftware = objWMIService.ExecQuery _
("Select * from Win32_Product")

objTextFile.WriteLine "Caption" & vbtab & _
"Description" & vbtab & "Identifying Number" & vbtab & _
"Install Date" & vbtab & "Install Location" & vbtab & _
"Install State" & vbtab & "Name" & vbtab & _
"Package Cache" & vbtab & "SKU Number" & vbtab & "Vendor" & vbtab _
& "Version"

For Each objSoftware in colSoftware
objTextFile.WriteLine objSoftware.Caption & vbtab & _
objSoftware.Description & vbtab & _
objSoftware.IdentifyingNumber & vbtab & _
objSoftware.InstallDate2 & vbtab & _
objSoftware.InstallLocation & vbtab & _
objSoftware.InstallState & vbtab & _
objSoftware.Name & vbtab & _
objSoftware.PackageCache & vbtab & _
objSoftware.SKUNumber & vbtab & _
objSoftware.Vendor & vbtab & _
objSoftware.Version
Next
objTextFile.Close