SCCMWebService..::..RunPowerShellScriptWithResultSet Method (String, String, String, ScriptTypes)
Runs the power shell script with result set.
Namespace:
SCCMWebServiceAssembly: SCCMWebService (in SCCMWebService.dll)
Syntax
[SoapHeaderAttribute] [WebMethodAttribute] public DataSet RunPowerShellScriptWithResultSet( string computerName, string scriptFileName, string arguments, ScriptTypes scriptType )
<SoapHeaderAttribute> _ <WebMethodAttribute> _ Public Function RunPowerShellScriptWithResultSet ( _ computerName As String, _ scriptFileName As String, _ arguments As String, _ scriptType As ScriptTypes _ ) As DataSet
[SoapHeaderAttribute] [WebMethodAttribute] public: DataSet^ RunPowerShellScriptWithResultSet( String^ computerName, String^ scriptFileName, String^ arguments, ScriptTypes^ scriptType )
Parameters
- computerName
- Type: String
Name of the computer.
- scriptFileName
- Type: String
Name of the script file.
- arguments
- Type: String
The arguments.
- scriptType
- Type: SCCMWebService.DataObjects..::..ScriptTypes
Type of the script.