|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Help!! InvalidOperationException in GetProcessesByName!!I used "Process.GetProcessesByName" method under XP with no problem.
Under Vista it throws "InvalidOperationException" if the user is not Administrator. Please help. Eugene. surprise, surprise :)
Welcome to the real world (the non-admin world) - if you are not an admin you don't have access to every process information. Be prepared for such exceptions. --- Dominick Baier, DevelopMentor http://www.leastprivilege.com Show quoteHide quote > I used "Process.GetProcessesByName" method under XP with no problem. > > Under Vista it throws "InvalidOperationException" if the user is not > Administrator. > > Please help. > > Eugene. > I've been a veteran of non-Admin world since 1999. This is different world.
Whoever enabled this restriction no doubt meant to make Vista more secure. In reality I will have to set my users up as administrators so my program can continue to function. Please suggest any way to code around. Thank you in advance. Eugene Show quoteHide quote "Dominick Baier" wrote: > surprise, surprise :) > > Welcome to the real world (the non-admin world) - if you are not an admin > you don't have access to every process information. Be prepared for such > exceptions. > > --- > Dominick Baier, DevelopMentor > http://www.leastprivilege.com > > > I used "Process.GetProcessesByName" method under XP with no problem. > > > > Under Vista it throws "InvalidOperationException" if the user is not > > Administrator. > > > > Please help. > > > > Eugene. > > > > > Which build of Vista are you using for your testing?
Show quoteHide quote "Eugene" <Eug***@discussions.microsoft.com> wrote in message news:E6C98310-51B3-4B92-960C-C7C005D50FAB@microsoft.com... >I used "Process.GetProcessesByName" method under XP with no problem. > > Under Vista it throws "InvalidOperationException" if the user is not > Administrator. > > Please help. > > Eugene.
System.String vs SecureString
Security problems in .Net web application X.509 Certificate store - getting - creating certs SecurityException thrown when serializing custom exception class Question on the use of CryptoStream WinForm user authentication COM+ Security error Credentials Double Hop encryption prob How do I determine if a windows identity is authenticated to the network domain |
|||||||||||||||||||||||