欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

VBS不需重啟修改DNS和網(wǎng)關

  發(fā)布時間:2009-07-22 16:04:48   作者:佚名   我要評論
  Const STR_GATEWAY = "192.168.1.254"   Const STR_NEWDNS1 = "221.6.4.67"   Const STR_NEWDNS2 = "61.177.7.1"
  Const STR_GATEWAY = "192.168.1.254"
  Const STR_NEWDNS1 = "221.6.4.67"
  Const STR_NEWDNS2 = "61.177.7.1"
  Set fs=CreateObject("Scripting.FileSystemObject")
  strWinMgmt="winmgmts:{impersonationLevel=impersonate}"
  Set objNICs = GetObject( strWinMgmt ).InstancesOf("Win32_NetworkAdapterConfiguration")
  For Each objNIC In objNICs
  If objNIC.IPEnabled Then
  objNIC.SetDNSServerSearchOrder Array(STR_NEWDNS1,STR_NEWDNS2)
  objNIC.SetGateways Array(STR_GATEWAY)
  End If
  Next
  
  修改192.168.1.254為您的網(wǎng)關地址。
  修改221.6.4.67為主DNS地址。
  修改61.177.7.1為副DNS地址

相關文章

最新評論