Quantcast
Channel: Remote Desktop Services (Terminal Services) forum
Viewing all articles
Browse latest Browse all 1106

start program Rdpclient

$
0
0
How start the program  ? 

I do this, but not work 

axMsRdpClient8NotSafeForScripting1.Server = "ip";
            axMsRdpClient8NotSafeForScripting1.UserName = @"administrator";
            axMsRdpClient8NotSafeForScripting1.Domain = "";

            var settings = axMsRdpClient8NotSafeForScripting1.AdvancedSettings9;
            settings.ClearTextPassword = "123";
           // settings.LoadBalanceInfo = loadbancerinfo;
            settings.EnableCredSspSupport = true;
            settings.AuthenticationLevel = 0;
            settings.NegotiateSecurityLayer = false;

            var ocx = axMsRdpClient8NotSafeForScripting1.GetOcx();
            var extendedSettings = ocx as IMsRdpExtendedSettings;
            object False = false;
            extendedSettings.set_Property("DisableCredentialsDelegation", ref False);


               axMsRdpClient8NotSafeForScripting1.Dock = DockStyle.Fill;
            axMsRdpClient8NotSafeForScripting1.AdvancedSettings7.PublicMode = false;
            axMsRdpClient8NotSafeForScripting1.AdvancedSettings6.RedirectClipboard = true;

                  axMsRdpClient8NotSafeForScripting1.SecuredSettings2.StartProgram = "calc.exe";
            axMsRdpClient8NotSafeForScripting1.SecuredSettings2.WorkDir = @"C:\Windows\System32";
              axMsRdpClient8NotSafeForScripting1.Connect();


Auth is good. Test in  3 rdp. Two - nothing but 1 give error "the system cannot fiind the file specified ...". 



Viewing all articles
Browse latest Browse all 1106

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>