How to restrict network access for child process in windows

I am starting a child process in my C # console application using the Process.Start () method. I would like to restrict the child process so that it cannot access the network.

Specifically, I am trying to run some tests by running vstest.console.exe using Process.Start (). The goal is that these tests should not access any slow or unreliable resources like network, database, etc. Any tests trying to talk over the network should fail.

I have searched the web and stackoverflow, but the closest match I got is an unanswered question . Any ideas?

+3
c # windows process sandbox


source to share


No one has answered this question yet

See similar questions:

0
How to restrict / grant read / write access to child memory of a process?

or similar:

2453
How do I install pip on Windows?
1975
How do I know which process is listening on a port on Windows?
1141
How can I develop for iPhone using Windows development machine?
766
How do I run two commands on the same line in Windows CMD?
719
How do I get the exit code of an application from the Windows command line?
672
How do you measure the actual memory usage of an application or process?
307
Really kill a process on Windows
3
The service should spawn a non-interactive child process, but with an "Access Denied" error,
0
Executing processes using the C # Process class in a safe and restricted manner
0
C # Console app - starting a process as local administrator and network user (Windows)



All Articles
Loading...
X
Show
Funny
Dev
Pics