Solved

Process.GetProcesses() and User Privilege

Posted on 2006-06-12
3
348 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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

688 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