public DeploymentResult Execute() { var result = new DeploymentResult(); var p = Path.Combine(ExecutableIsLocatedAt, Command); ProcessReturnCode returnCode = WmiProcess.Run(Machine, Command, Args, ExecutableIsLocatedAt); //TODO: how can I get the output back from the computer? if (returnCode != ProcessReturnCode.Success) { result.AddError(_status[(int)returnCode]); } return(result); }
public DeploymentResult Execute() { var result = new DeploymentResult(); var p = Path.Combine(ExecutableIsLocatedAt, Command); ProcessReturnCode returnCode = WmiProcess.Run(Machine, Command, Args, ExecutableIsLocatedAt); //TODO: Get the output file. Parse it out to get ERRORS and other things and add them to the results if (returnCode != ProcessReturnCode.Success) { result.AddError(_status[(int)returnCode] + " (" + p + ")"); } return(result); }
public void Bill() { var p = WmiProcess.Run("SrvTestWeb01", "ping", "www.google.com", ""); }