SCCM WebService API Reference

SCCMWebService..::..RunPowerShellScriptLocal Method (String, String, String, Boolean)

Runs the power shell script local.

Namespace:  SCCMWebService
Assembly:  SCCMWebService (in SCCMWebService.dll)

Syntax


[SoapHeaderAttribute]
[WebMethodAttribute]
public PowerShellResult RunPowerShellScriptLocal(
	string psPath,
	string scriptFileName,
	string arguments,
	bool getResultString
)
<SoapHeaderAttribute> _
<WebMethodAttribute> _
Public Function RunPowerShellScriptLocal ( _
	psPath As String, _
	scriptFileName As String, _
	arguments As String, _
	getResultString As Boolean _
) As PowerShellResult
[SoapHeaderAttribute]
[WebMethodAttribute]
public:
PowerShellResult^ RunPowerShellScriptLocal(
	String^ psPath, 
	String^ scriptFileName, 
	String^ arguments, 
	bool^ getResultString
)

Parameters

psPath
Type: String
The ps path.
scriptFileName
Type: String
Name of the script file.
arguments
Type: String
The arguments separated with pipes.
getResultString
Type: Boolean
if set to true [get result string].

Return Value

true if succeeded, false otherwise.