コード例 #1
0
 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);
 }
コード例 #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);
        }
コード例 #3
0
 public ProcessLocal()
 {
     options         = ProcessConnection.ProcessConnectionOptions();
     connectionScope = ProcessConnection.ConnectionScope(
         Environment.MachineName, options);
 }
コード例 #4
0
 public ProcessRemote(string machineName)
 {
     this.machineName = machineName;
     connectionScope  = ProcessConnection.ConnectionScope(machineName, ProcessConnection.ProcessConnectionOptions());
 }