@Throws(value=PowershellErrorTypeProvider.class) public class PowershellOperations extends org.mule.connectors.commons.template.operation.ConnectorOperations<PowershellConfiguration,PowershellConnection,PowershellService>
| Constructor and Description |
|---|
PowershellOperations() |
| Modifier and Type | Method and Description |
|---|---|
String |
executeCommand(PowershellConfiguration config,
PowershellConnection connection,
String command)
This operation executes the command on the machine.
|
String |
executeScriptFile(PowershellConfiguration config,
PowershellConnection connection,
InputStream fileContent,
Map<String,String> parameters)
This operation Executes the script file
|
@MediaType(value="text/plain") public String executeScriptFile(@Config PowershellConfiguration config, @Connection PowershellConnection connection, @Content InputStream fileContent, @Optional Map<String,String> parameters)
config - PowerShell Configurationconnection - Connection for the Powershell.fileContent - The file which contains the script.parameters - The Parameters for the Script.@MediaType(value="text/plain") public String executeCommand(@Config PowershellConfiguration config, @Connection PowershellConnection connection, String command)
config - PowerShell configurationconnection - Connection for the Powershell.command - The command to Execute on the client machine.Copyright © 2021 MuleSoft, Inc.. All rights reserved.