Windows : Running netsh command as an administrator

akash mahakode

Greenhorn

Posts: 1

posted 4 years ago

Hi Experts,

I want to run "netsh" command on windows 7 with some parameters. It requires administrator privileges. This can be achieved either by launching "cmd"as an administrator.
But I want run "netsh" command as Runtime.getRuntime.exec("cmd /c netsh"); with administrator privileges.