Re: [staf-users] Using STAF with a powershell snapin

2011-05-20 Thread George
John, try the following commands. Here is a direct powershell command through staf: C:\work\bin>staf local process start shell command "ps" WAIT STDERRTOSTDOUT RETURNSTDOUT Response { Return Code: 0 Key: Files : [ { Return Code: 0 Data : Handl

Re: [staf-users] Using STAF with a powershell snapin

2011-05-20 Thread Sharon Lucas
Return code 75 is not a STAF return code. It appears that there are some things wrong with your command: 1) You used a \" to nest a double quote within a double quote for the first double quote, but you also need to use \" for the ending quote. Also, I would use / instead of \ within the fil

Re: [staf-users] Using STAF with a powershell snapin

2011-05-20 Thread John Andoh
;> On Thu, May 19, 2011 at 3:50 PM, Sharon Lucas wrote: >> >>> I don't know anything about Powershell snapins. But, if you specify the >>> following does it work? >>> >>> C:\>STAF local PROCESS START SHELL COMMAND "powershell -ExecutionPolicy

Re: [staf-users] Using STAF with a powershell snapin

2011-05-20 Thread George
"powershell -ExecutionPolicy > UNRESTRICTED -command C:\\test.ps1" WAIT RETURNSTDOUT RETURNSTDERR > SAMECONSOLE > > -- > Sharon Lucas > IBM Austin, luc...@us.ibm.com > (512) 286-7313 or T

Re: [staf-users] Using STAF with a powershell snapin

2011-05-20 Thread Padalia, Preeti
[mailto:luc...@us.ibm.com] Sent: Friday, May 20, 2011 4:20 AM To: John Andoh Cc: staf-users@lists.sourceforge.net Subject: Re: [staf-users] Using STAF with a powershell snapin I don't know anything about Powershell snapins. But, if you specify the following does it work? C:\>STAF local

Re: [staf-users] Using STAF with a powershell snapin

2011-05-20 Thread John Andoh
est.ps1" WAIT RETURNSTDOUT RETURNSTDERR >> SAMECONSOLE >> >> ---------- >> Sharon Lucas >> IBM Austin, luc...@us.ibm.com >> (512) 286-7313 or Tieline 363-7313 >> >> >> >> >> From

Re: [staf-users] Using STAF with a powershell snapin

2011-05-19 Thread John Andoh
h > To: staf-users@lists.sourceforge.net > Date:05/19/2011 05:34 PM > Subject:[staf-users] Using STAF with a powershell snapin > -- > > > > Dear staf-users, > > I am having problems running a Powershell script, test.ps

Re: [staf-users] Using STAF with a powershell snapin

2011-05-19 Thread Sharon Lucas
TDERR SAMECONSOLE -- Sharon Lucas IBM Austin, luc...@us.ibm.com (512) 286-7313 or Tieline 363-7313 From: John Andoh To: staf-users@lists.sourceforge.net Date: 05/19/2011 05:34 PM Subject: [staf-users] Using STAF with a powershell snapin Dear staf-users, I

[staf-users] Using STAF with a powershell snapin

2011-05-19 Thread John Andoh
Dear staf-users, I am having problems running a Powershell script, test.ps1, with the "STAF PROCESS START SHELL" command. The script loads a Powershell snapin, Storage.Management.Powershell.Admin, and executes a command, get-subsystem, implemented by the snap-in. This is the content of the powers