SCCMWebService..::..RunPowerShellScriptLocal Method (String, String, array<String>[]()[][], Boolean)
Runs the power shell script local.
Namespace:
SCCMWebServiceAssembly: 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, array<String^>^ arguments, bool^ getResultString )
Parameters
- psPath
- Type: String
The ps path.
- scriptFileName
- Type: String
Name of the script file.
- arguments
- Type: array<String>[]()[][]
The arguments.
- getResultString
- Type: Boolean
if set to true [get result string].