Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Threading;
- using MSTSCLib;
- namespace test
- {
- class Program
- {
- static void Main(string[] args)
- {
- try {
- var rdp = new MSTSCLib.MsRdpClient8();
- rdp.Server = "6.6.16.6";// host.Text;
- rdp.UserName = "admin"; // login.Text;
- rdp.AdvancedSettings2.ClearTextPassword = "admin";
- rdp.AdvancedSettings7.EnableCredSspSupport = true;
- rdp.Connect();
- if (rdp.Connected.ToString() == "1" )
- {
- rdp.Disconnect();
- Console.WriteLine("good");
- Console.ReadKey();
- }
- else
- {
- Console.WriteLine("error");
- Console.ReadKey();
- }
- }
- catch (Exception)
- {
- // Console.ReadKey();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement