Solved

Process.GetProcesses() and User Privilege

Posted on 2006-06-12
3
346 Views
Last Modified: 2010-04-16
I have a VS 2003 C# application that works fine in most environments.  It has recently been installed in a corporate environment (WinXP / Server 2003) where the user workstations are pretty well 'tightened-down' from a security point of view.  The application makes use of Process.GetProcesses() and it appears that the application throws an exception when this is called due to insufficient privilege.  So my question is -- from a security perspective, what changes in groups or policy (or whatever) need to be made such that Process.GetProcesses() will not throw?  Obviously, making everyone an admin would solve the problem, but I am looking for something a bit more targeted and minimalistic that will keep their administrator happy.

Thanks!
0
Comment
Question by:bnonnemann
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 11

Accepted Solution

by:
Expert1701 earned 125 total points
ID: 16887619
The System.Diagnostics.Process.GetProcesses method requires the calling assembly to be fully trusted by the .NET Framework.  You may consider signing your assembly and then deploying an enterprise policy that includes the required permissions.

  Signing an Assembly with a Strong Name
  http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconassigningassemblystrongname.asp

  .NET Framework Enterprise Security Policy Administration and Deployment
  http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/entsecpoladmin.asp
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question