SCCMWebService..::..RunPowerShellScript Method (String, String)
Runs the given powershell script on local system using power shell path for custom scripts (..\Custom\Local).
Namespace:
SCCMWebServiceAssembly: SCCMWebService (in SCCMWebService.dll)
Syntax
[SoapHeaderAttribute] [WebMethodAttribute] public bool RunPowerShellScript( string scriptFileName, string arguments )
<SoapHeaderAttribute> _ <WebMethodAttribute> _ Public Function RunPowerShellScript ( _ scriptFileName As String, _ arguments As String _ ) As Boolean
[SoapHeaderAttribute] [WebMethodAttribute] public: bool^ RunPowerShellScript( String^ scriptFileName, String^ arguments )