Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > Bulldog (Need help with script downloaded from script center)

Reply
Thread Tools Display Modes

Bulldog (Need help with script downloaded from script center)

 
 
Bulldog Bill
Guest
Posts: n/a

 
      01-15-2009
I downloaded the below script for listing all software loaded on a client
station but when i run it undesr wscript or use the GUI I have to ok each
and every capture, I am trying to get a list of what is on the station and
get it output to a csv file if possible. I am new at all of this so any help
at all would be appreciated. thanks in advance>

Const HKLM = &H80000002 'HKEY_LOCAL_MACHINE
strComputer = "."
strKey = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\"
strEntry1a = "DisplayName"
strEntry1b = "QuietDisplayName"
strEntry2 = "InstallDate"
strEntry3 = "VersionMajor"
strEntry4 = "VersionMinor"
strEntry5 = "EstimatedSize"

Set objReg = GetObject("winmgmts://" & strComputer & _
"/root/default:StdRegProv")
objReg.EnumKey HKLM, strKey, arrSubkeys
WScript.Echo "Installed Applications" & VbCrLf
For Each strSubkey In arrSubkeys
intRet1 = objReg.GetStringValue(HKLM, strKey & strSubkey, _
strEntry1a, strValue1)
If intRet1 <> 0 Then
objReg.GetStringValue HKLM, strKey & strSubkey, _
strEntry1b, strValue1
End If
If strValue1 <> "" Then
WScript.Echo VbCrLf & "Display Name: " & strValue1
End If
objReg.GetStringValue HKLM, strKey & strSubkey, _
strEntry2, strValue2
If strValue2 <> "" Then
WScript.Echo "Install Date: " & strValue2
End If
objReg.GetDWORDValue HKLM, strKey & strSubkey, _
strEntry3, intValue3
objReg.GetDWORDValue HKLM, strKey & strSubkey, _
strEntry4, intValue4
If intValue3 <> "" Then
WScript.Echo "Version: " & intValue3 & "." & intValue4
End If
objReg.GetDWORDValue HKLM, strKey & strSubkey, _
strEntry5, intValue5
If intValue5 <> "" Then
WScript.Echo "Estimated Size: " & Round(intValue5/1024, 3) & "
megabytes"
End If
Next


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Script to push downloaded updates Dan Windows Update 5 01-30-2009 08:20 AM
Re: Bulldog (Need help with script downloaded from script center) Richard Mueller [MVP] Scripting 0 01-15-2009 09:12 PM
Help with script center script Buck Active Directory 3 09-04-2008 10:47 AM
WSUS : script to install downloaded updates Christophe POIRIER Update Services 0 09-08-2006 02:21 PM
[MSH] - Is it possible to combine functions into a script/library file that can later be included into another script? Rahul Agarwal Scripting 1 12-05-2005 11:30 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59