Jump to content
Sign in to follow this  

Dumpel.exe script

Recommended Posts


I'm trying to write a script that runs dumpel.exe, but I can't get it to run.



$file = FileOpen(@ScriptDir & "\_servers.txt", 0)

$log = InputBox ( "Event Log Reader", "Enter the event log you want to read:", "system or application or security")

$event = InputBox ( "Event Log Reader", "Enter the number of the event you want to read:", "19 or 22 or 4377")

$source = InputBox ( "Event Log Reader", "Enter the source of the event:", "Windows Update Agent or NtServicePack or Print")

$outfile = InputBox ( "Event Log Reader", "Enter the name of the output file:", "log and event # ie sys4377")

; Check if file opened for reading OK

If $file = -1 Then

MsgBox(0, "Error", "Unable to open file.")



; Read in lines of text until the EOF is reached

While 1

$line = FileReadLine($file)

If @error = -1 Then ExitLoop

RunWait(@ScriptDir & "\dumpel -s \\" & $line & " -l " & $log & " -m " & $source & " -e " & $event & " -t -c -d 2 >>" & @ScriptDir & "\" & $outfile)

;c:\_scripts\dumpel -s \\barney -l system -m "windows update agent" -e 19 -t -c -d 2 >>c:\_reports\SYS19.txt




Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.