/build/static/layout/Breadcrumb_cap_w.png

List all installed software with last used day

Hi,

I'm planning a migration to Vista for my company. But to avoid unnecessary license cost i'd like to make a vb-script that lists all installed software for the current machine. I'd also like to know the date the user last used the software.

Anyone any idea how to do this? I found this but that doesn't report correct.


<job id="FindSoftware">
<script language="VBScript">
On Error Resume Next
Dim X
set X = createobject("WSCRIPT.Network")
dim U
U=x.UserName

strComputer = "."
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
'Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")

Set colFeatures = objWMIService.ExecQuery _
("SELECT * FROM Win32_SoftwareFeature")

Set fso = CreateObject("Scripting.FileSystemObject")
Set file = fso.CreateTextFile("MYSERVERshare" & U & ".txt",2)
For each objFeature in colFeatures
file.writeline "Product Name: " & objFeature.Name & ";"
file.writeline "Caption: " & objFeature.Caption & ";"
file.writeline "Description: " & objFeature.Description & ";"
file.writeline "Vendor: " & objFeature.Vendor & ";"
file.writeline "Last Use: " & objFeature.LastUse & ";"
file.writeline ""


Next
set file =nothing
set fso=nothing
wscript.echo "finished"

</script>
</job>


Regards

Joeri.

0 Comments   [ + ] Show comments

Answers (3)

Posted by: anonymous_9363 16 years ago
Red Belt
0
As ever, a simple Google search will have found examples. Admittedly some are better than others. One I have used in anger in the past is available at http://www.jsware.net. Check out EnumSoft.vbs and MSIList.vbs
Posted by: nrkres 16 years ago
Senior Yellow Belt
0
Please send me the VB script to install a software
Condition: the msi file is in the same loacation where VB script is located
Posted by: anonymous_9363 16 years ago
Red Belt
0
Can I refer you to post #10 in this thread http://itninja.com/question/faulttree-10449 the content of which still applies here? If you're too lazy to learn to script, or are somehow congenitally unable to use a search engine, then you need to find someone to do it for you in return for payment. Please stop asking here.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ