manage net interface via CMD

export all interface settings to text

netsh -c interface ip dump > c:\interface.txt


import all interface settings from text

netsh -f c:\interface.txt


set DHCP dns servers

netsh interface ipv4 set dnsservers name="{interface_name}" source=dhcp


set Google dns servers

netsh interface ipv4 set dnsservers name="{interface_name}" static 8.8.8.8
netsh interface ipv4 add dnsservers name="{interface_name}" 8.8.4.4 index=2

 

query installed .net framework

reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319\SKUs
创建时间:6/26/2022 2:08:02 AM 修改时间:9/15/2022 7:21:02 PM