Powershell: Method not found: ‘System.Threading.Tasks.Task System.Threading.Tasks.Task.Run(System.Action)’


when you tried to start powershell and the window opens and closes immediately.

Open a cmd and start powershell by calling powershell.exe
More »

Advertisment to support michlstechblog.info

Windows: Set network parameters from command line by using WMIC.exe


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.


Original Theme by Schiy · Powered by WordPress