public ProcessRemote(string userName,
                      string password,
                      string domain,
                      string machineName)
 {
     this.userName    = userName;
     this.password    = password;
     this.domain      = domain;
     this.machineName = machineName;
     options          = ProcessConnection.ProcessConnectionOptions();
     if (domain != null || userName != null)
     {
         options.Username = domain + "\\" + userName;
         options.Password = password;
     }
     options.EnablePrivileges = true;
     connectionScope          = ProcessConnection.ConnectionScope(machineName, options);
 }
Beispiel #2
0
        public ProcessRemote(string machineName,
                             string userName,
                             string password,
                             string domain)
        {
            this.userName    = userName;
            this.password    = password;
            this.domain      = domain;
            this.machineName = machineName;

            options           = ProcessConnection.ProcessConnectionOptions();
            options.Authority = "NTLMDOMAIN:" + domain;
            if (domain != null || userName != null)
            {
                options.Username = domain + "\\" + userName;
                options.Password = password;
            }
            connectionScope = ProcessConnection.ConnectionScope(machineName, options);
        }
Beispiel #3
0
 public ProcessLocal()
 {
     options         = ProcessConnection.ProcessConnectionOptions();
     connectionScope = ProcessConnection.ConnectionScope(
         Environment.MachineName, options);
 }
Beispiel #4
0
 public ProcessRemote(string machineName)
 {
     this.machineName = machineName;
     connectionScope  = ProcessConnection.ConnectionScope(machineName, ProcessConnection.ProcessConnectionOptions());
 }