Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by noufs

  1. noufs

    Check if adapter is Dhcp or static ip

    You are my new VBS god, it works, thanks a lot :)
  2. noufs

    Check if adapter is Dhcp or static ip

    Ok i have no errors now, but here is the problem: Actually my "DHCP activ" is : non, Normally the script switch me to dhcp enabled, but he skip that : if instr(teststr, "DCHP activ") > non then For Each objNetAdapter In colNetAdapters errEnable = objNetAdapter.EnableDHCP() and use that...
  3. noufs

    Check if adapter is Dhcp or static ip

    Thanks for the answer, but it say on this line : If InStr(ReadLineTextFile, "DHCP activ") > 0 Then Exit Loop Incorrect 'exit' instruction Code : 800a040F
  4. noufs

    Check if adapter is Dhcp or static ip

    Hey, here is what i need : The script check if i am in DHCP, it disable it, and enable static ip ( i give it the right ip adress in the script ), and if im not, he enable dhcp. so : if dhcp -> static ip If static ip -> Dhcp Here is the beginning of my code. Const ForReading = 1 Set...

Part and Inventory Search

Back
Top