SCCMWebService..::..RunPowerShellScript Method (String, array<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, array<String^>^ arguments )
Parameters
- scriptFileName
- Type: String
Name of the script file.
- arguments
- Type: array<String>[]()[][]
The arguments.