Firstly, there are no problems with code execution on Win7 / Win8, etc. The problem exists only in Windows XP. The code is in one button and basically launches taskmgr.exe as other user credentials (local administrator credentials, this is a kiosk PC that downloads a C # application that can be registered and then loads cmd.exe / taskmgr.exe as a local administrator are not affected by GPOs associated with the kiosk user).
However, on XP, I get an error message when I click a button: Stub received bad data.
the code:
private void btnTaskMgr_Click(object sender, EventArgs e) { string password = "myPassword"; SecureString secureString = new SecureString(); foreach (char chr in password) secureString.AppendChar(chr); ProcessStartInfo processAdmin; processAdmin = new ProcessStartInfo(); processAdmin.UseShellExecute = false; processAdmin.Password = secureString; processAdmin.UserName = "admin"; processAdmin.FileName = "taskmgr.exe"; processAdmin.WorkingDirectory = "C:\\Windows\\System32"; Process.Start(processAdmin); }

c #
Pnp
source share