适用于网络栈出现故障,不能正常显示IP地址。
#cs ---------------------------------------------------------------------------------------
FileName:
NetworkDiagnosis.au3
Description:
This tool is used to disable and enable network device to recover IP address.
This scripts use a external program: devcon.exe, which is a Windows Device manange
tookit. More information about this tool, you can retrieve from web.
Use below commands to implement function of network diagnosis:
devcon status *
Display all device info, find out device instance by device name.
devcon disable @device instance
Disable this device
devcon enable @device instance
Enable this device
The device name is the name of device which not has a IP address, maybe cause of
network stack issues. You can use windows command: ipconfig to get all network
device. And compare to output of command devcon status *. If you can find a device
in the latter command