when you tried to start powershell and the window opens and closes immediately.
Open a cmd and start powershell by calling powershell.exe
Advertisment to support michlstechblog.info
you can use wmic.exe to set some network parameters (and much more, its WMI!!) from command line. Syntax is very hard, but it works :-).
For Example. If you want to disable the DNS registration of all enabled Intel e1000 network adapters.
wmic path Win32_NetworkAdapterConfiguration where (IPEnabled="true" and ServiceName="E1G60") call SetDynamicDNSRegistration False,False
The Filter in the braces is the where condition of wmi “select * from NetworkAdapterConfiguration where IPEnabled=’true’ and ServiceName=’E1G60′ ” statement. Modify this for your needs. By using WMI queries this is much more flexible than netsh command lines.