Hello everybody,
I’m french, so sorry for my language … ![]()
I have a little problem …
I make a little script in vbscript to get back information about event of LogEvent, this script works without The Dude, but not with The Dude …
chosen_source = WScript.Arguments(0)
chosen_error = WScript.Arguments(1)
'chosen_source="lol"
'chosen_error=903
Set objWMIServices = GetObject _
("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2")
Set objWMIObjectSet = objWMIServices.ExecQuery _
("Select * from Win32_NTLogEvent")
For Each objWMIObject In objWMIObjectSet
source = objWMIObject.SourceName
error = objWMIObject.EventCode
If (chosen_error = error) and (chosen_source = source) Then
find="1"
Exit For
End if
Next
If find="1" Then
Wscript.Echo "find"
else
Wscript.Echo "not find"
End If
Help me ! Thanks ![]()