Link to home
Start Free TrialLog in
Avatar of bender_23
bender_23

asked on

Trouble passing MS03-043 a switch through VB and winbatch

For some reason, when I try to pass the /passive or /quiet switch to the MS03-043 payload in VB or winbatch, it doesn't read that I'm throwing a parameter in there. VB code won't pass it through with shell or shell and wait commands.

When I copy and paste the patch into the command line it works fine, but whatever I try to use to do it automatically, it's like the parameters aren't there. Bit of a problem when you are trying to apply the patch on a large scale. Any ideas?
Avatar of cookre
cookre
Flag of United States of America image

In VB, are you using something like:
Shell("c:\here\...KB828035-x86-ENU.EXE  /quiet".vbHide)

How do you call it from WinBatch?


Avatar of bender_23
bender_23

ASKER

Winbatch is:

runshell("mypath\"KB828035-x86-ENU.EXE, /passive,"",@NORMAL,@WAIT)

The weird thing about the Winbatch code is that it kicks off the exe from Microsoft, but then the Winbatch exe throws a 3068 Function Syntax. Illegal delimiter found error and so winbatch won't die.
Sorry it's:

runshell("mypath\KB828035-x86-ENU.EXE", " /passive","",@NORMAL,@WAIT)

Too much caffeine, not enough sleep.
ASKER CERTIFIED SOLUTION
Avatar of cookre
cookre
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial