I have created a Windows app and when I run it it appears under the Processes tab in Task Manager. That's fine but there is no user name for it. This means I am unable to kill it in a command prompt (it gives me "access denied"). I cannot understand this as I am able to install it so I should be able to kill the process?
If I hardcode in the username and password to the ProcessStartInfo properties then I can kill the process (the username appears under the Processes tab in Task Manager) . This is not feasable as for security reasons I cannot hardcode in Windows usernames and passwords.
Under the Processes tab in Task Manager I see other apps such as Word, Excel etc, with the logged on username so why not my app?
Process has no username
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Jul 1, 2011, 7:27 AM EDT
John Doherty3 reputationPosted Jul 1, 2011, 8:22 AM EDT
Sam HobbsRank #108 · 20.5K reputationPosted Jul 1, 2011, 9:18 PM EDT