locked
WMIC with Arguments/ Parameter while use PROCESS CREATE CALL exe RRS feed

  • Question

  • Hi Team,

    I want to call exe from remote system using WMIC direct command. for that I prepare one command here 
       
    WMIC /NODE:"RemoteSys" /USER:"domain\username" /PASSWORD:"XXXXXXXXX" PROCESS CREATE CALL "C:\Program Files (x86)\Company\Product\productapp.exe"

    But issue here is this productapp.exe is expecting an arguments/ parameters like "  -p PlantA   "

    Question here is How to pass it ?

    I tried many alternate ways but all fails like:

    WMIC /NODE:"RemoteSys" /USER:"domain\username" /PASSWORD:"XXXXXXXXX" PROCESS CREATE "C:\Program Files (x86)\Company\Product\productapp.exe" -p PlantB   
    Output: Invalid Verb Switch

    WMIC /NODE:"RemoteSys" /USER:"domain\username" /PASSWORD:"XXXXXXXXX" PROCESS CREATE "C:\Program Files (x86)\Company\Product\productapp.exe" "-p PlantB"
    Output: Invalid format. Hint: <paramlist> = <param> [, <paramlist>].

    Don't know what is paramlist & How to use that.

    Can anyone help me here ?

    Regards, Brijesh Shah

    Thursday, March 13, 2014 10:49 AM

Answers