C# Remote Process username and password incorrect -


hello i'm try procceses remote computer in lan network , set of property know username , password when try connect give me

system.componentmodel.win32exception (0x80004005): user name or password incorrect;

i type right username , password administrative rights u think ?

that code

onst string file = "cmd.exe";          var sspw = new securestring();          foreach (var c in "password")             sspw.appendchar(c);          var proc = new process();          proc.startinfo.useshellexecute = false;          proc.startinfo.workingdirectory = path.getdirectoryname(file);          proc.startinfo.filename = path.getfilename(file);          proc.startinfo.domain = "remotepc";         proc.startinfo.arguments = "";         proc.startinfo.username = "username";         proc.startinfo.password = sspw;         proc.startinfo.loaduserprofile = false;         proc.start(); 


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -