I have a service (normally run as NetworkService) that retrieves process information using StartInfo. It works fine.
But a client wants to run the service as a restricted user. (a reasonable request)
According to MS docs StartInfo can only be used by a “fully trusted” user. Is there an alternative way to get most of the information from StartInfo without being “fully trusted” or to configure a restricted user that is “fully trusted” with respect to process info?
Basically anything related to processes requires full trust.
So no, there is no way to get information about processes without full trust.
Use the Code Access Security Policy Tool to assign full trust