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
Post a Comment