[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Executing .EXE on remote computer and getting output on local machine.

Asked by aa230002 in VB Script, Windows Management Instrumentation (WMI)

Tags: VB SCRIPT & WMI

i am trying to fetch the RAID controller firmware from the remote computer making use of the tools from the vendors like IBM and HP. IBM Has IPSSEND.EXE which when executed with the arguments "GETVERSION" provides the info of the RAID cards firmware in the box. I am able to riun this tool properly with my script and get the output.
But the HP tool "HPACUCLI.EXE" also has some DLLS with it without whcih it wont run. So i have put all of them in a folder on remote computer and trying to execute it from remote computer similarly as IBM tool So, the script executes but does not generate the output. I also tried one more .EXE that runs with the support of DLL that is also not generating any output on local machine.    But when I run that command from the remote machine it runs fine and generates output on my local mahcine. C:\HPACUCLI.EXE CTRL SHOW > \\Remotecomputer\share\output.txt. So just wanted to know if i need to make any spl efforts to execute the remoteprocess that has the DLLS assosiated? Or if there is any other way in VB to invoke the remote process and get the output..  
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
strComputer = "remote computer name"
strCommand = "c:\ipssend.exe getversion > \\Remotecomputer\share\output.txt"
 
Const INTERVAL = "n"
Const MINUTES = 1
 
 
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set objScheduledJob = objWMIService.Get("Win32_ScheduledJob")
Set objSWbemDateTime = CreateObject("WbemScripting.SWbemDateTime")
 
 
objSWbemDateTime.SetVarDate(DateAdd(INTERVAL, MINUTES, Now()))
errReturn = objScheduledJob.Create(strCommand, objSWbemDateTime.Value, False, 0, 0, True, intJobID)
[+][-]08/06/09 01:38 AM, ID: 25031141Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/06/09 10:04 PM, ID: 25040087Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/14/09 10:02 AM, ID: 25100150Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/04/09 02:08 PM, ID: 25744524Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625