SCCM WebService API Reference

SCCMWebService..::..GetPowerShellScriptProperties Method

Gets the power shell script.

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

Syntax


[SoapHeaderAttribute]
[WebMethodAttribute]
public PowerShellScriptProperties GetPowerShellScriptProperties(
	ScriptTypes scriptType,
	string scriptName
)
<SoapHeaderAttribute> _
<WebMethodAttribute> _
Public Function GetPowerShellScriptProperties ( _
	scriptType As ScriptTypes, _
	scriptName As String _
) As PowerShellScriptProperties
[SoapHeaderAttribute]
[WebMethodAttribute]
public:
PowerShellScriptProperties^ GetPowerShellScriptProperties(
	ScriptTypes^ scriptType, 
	String^ scriptName
)

Parameters

scriptType
Type: SCCMWebService.DataObjects..::..ScriptTypes
Type of the script.
scriptName
Type: String
Name of the script.

Return Value

PSScript.

Exceptions


ExceptionCondition
ExceptionScript file ' + scriptFullName + ' not found.