SCCMWebService..::..RunPowerShellScriptWithResultString Method (String, String, ScriptTypes)
Runs the powershell script file.
Namespace:
SCCMWebServiceAssembly: SCCMWebService (in SCCMWebService.dll)
Syntax
[SoapHeaderAttribute] [WebMethodAttribute] public string RunPowerShellScriptWithResultString( string scriptFileName, string arguments, ScriptTypes scriptType )
<SoapHeaderAttribute> _ <WebMethodAttribute> _ Public Function RunPowerShellScriptWithResultString ( _ scriptFileName As String, _ arguments As String, _ scriptType As ScriptTypes _ ) As String
[SoapHeaderAttribute] [WebMethodAttribute] public: String^ RunPowerShellScriptWithResultString( String^ scriptFileName, String^ arguments, ScriptTypes^ scriptType )
Parameters
- scriptFileName
- Type: String
Name of the script file.
- arguments
- Type: String
The parameters.
- scriptType
- Type: SCCMWebService.DataObjects..::..ScriptTypes
Type of the script.