• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 354
  • Last Modified:

Process.GetProcesses() and User Privilege

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
bnonnemann
Asked:
bnonnemann
1 Solution
 
Expert1701Commented:
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now