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);
        }
Example #2
0
        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);
        }
Example #3
0
 public void Bill()
 {
     var p = WmiProcess.Run("SrvTestWeb01", "ping", "www.google.com", "");
 }