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...
Thanks for the answer, but it say on this line :
If InStr(ReadLineTextFile, "DHCP activ") > 0 Then Exit Loop
Incorrect 'exit' instruction
Code : 800a040F
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.