• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 440
  • Last Modified:

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?
0
bender_23
Asked:
bender_23
  • 2
  • 2
1 Solution
 
cookreCommented:
In VB, are you using something like:
Shell("c:\here\...KB828035-x86-ENU.EXE  /quiet".vbHide)

How do you call it from WinBatch?


0
 
bender_23Author Commented:
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.
0
 
bender_23Author Commented:
Sorry it's:

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

Too much caffeine, not enough sleep.
0
 
cookreCommented:
Well, that looks OK.
And the patch runs, but displays more than the progress bar?

How about the VB one - does it work now?
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now