Question Nothing happenning when using netsh command in Windows 10 Environment

lsmadeux

Member
Joined
Jul 18, 2017
Messages
8
Programming Experience
10+
Good Morning,

I am trying to modify my "Local Area Connection" network adapter programmatically.
I have done this successfully in C# under a Windows 7 environment using Visual Studio 2013, 2015 and 2107.
With the same code, I have not been able to successfully modify the Local Area Connection network adapter properties under Windows 10.

Below is a picture showing a simple example with improper results.
I also found that if I go to the command prompt, I can enter the below command and successfully make it work.
I would really appreciate the help.
BTW - this is a new Windows 10 work station. Could there be a path problem? Thanks!!!
Netsh ipv4 command.png
 
Last edited:
According to web ShellExecute must be 'true' for Verb to be used.
 
Back
Top Bottom