Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Registry editor and Event Viewer 1

Status
Not open for further replies.

porabai

Programmer
Jan 24, 2003
88
CA
Hello All,

Using vbscript I am able to get the value of a parameter called MSI version name on prompt. What I am looking is getting the registry Editor(REGEDIT) in which i would like to get the screen of Hkey/..../software/xyz/Appln name.

ALso I am looking at how to get the event viewer.


Thanks for your help in advance

 
Thank you PHV for the suggestions and appreciate it.

I am trying to get scripts for all the information I needed and would like to combine them into a single script.

for example to get the event log i have used the following code..
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colLoggedEvents = objWMIService.ExecQuery _
("Select * from Win32_NTLogEvent Where Logfile = 'Application' and SourceName= 'MsiInstaller' and EventType='Information'")

For Each objEvent in colLoggedEvents
Wscript.Echo "Category: " & objEvent.Category
Wscript.Echo "Computer Name: " & objEvent.ComputerName
Wscript.Echo "Event Code: " & objEvent.EventCode
Wscript.Echo "Message: " & objEvent.Message
Wscript.Echo "Record Number: " & objEvent.RecordNumber
Wscript.Echo "Source Name: " & objEvent.SourceName
Wscript.Echo "Time Written: " & objEvent.TimeWritten
Wscript.Echo "Event Type: " & objEvent.Type
Wscript.Echo "User: " & objEvent.User
Next

but i would like to get the above information based on the user.

is it possible to get the screen shot
Event Type: Information
Event Source: MsiInstaller
Event Category: None
Event ID: 11707
Date: 10/12/2007
Time: 1:47:15 PM
User: Test\Skennedy
Computer: XXXXXXXXX
Description:
Product: QuickTest Professional -- Installation operation completed successfully.

For more information, see Help and Support Center at Data:
0000: 7b 35 43 45 35 32 46 36 {5CE52F6
0008: 38 2d 36 33 41 44 2d 34 8-63AD-4
0010: 33 36 33 2d 42 34 37 43 363-B47C
0018: 2d 33 45 33 32 36 44 42 -3E326DB
0020: 33 33 38 38 45 7d 3388E}
The testing we are doing is to get the screen capture of the above shown and also for the registry editor under software\installed\application name.
thanks for your help and appreciate once again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top