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.
Regards
Joeri.
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)
Please log in to answer
Posted by:
anonymous_9363
16 years ago
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
Posted by:
anonymous_9363
16 years ago
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.
so that the conversation will remain readable.