Woops, I looked over that the first time.
I changed the script and it seems to work, atleast on the workstation I'm testing it on.
Still not sure how this change makes a difference between it only running once or for all available interfaces.
Anyway, where do I send the beers? :)
Thanks for the explanation.
The "if..then" is already inbetween my "for..next" isn't it?
I'm not sure I understand what you mean, could you please clarify?
Thank you
To give you a better overview, below you can find examples of working and non-working ip configurations of a workstation.
This is all using the same script.
WORKING IPCONFIG A
==================
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights...
I tried adding "where IPEnabled=1",,48" but this gives the same results.
As soon as the network interface I need to check is no longer first in the "ipconfig" list, the script no longer works.
There is also no error message.
Hello,
I'm trying to set up a script to have the ip range checked on clients.
If they fall into a certain range, the script must execute some batch file.
This is working as long as the client only has one network card installed.
For example, it works perfectly on my own workstation but as soon...
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.