|
|
|||||||
Folks i am wondering how to script in kixtart capture IP and deploy a printer when a user logon and the IP is within the ff range :10.250.1.0 through 25, 10.250.2.0 through 25 and 10.250.3.0 through 25. i want the printers to deploy if the machine is within these IP ranges.....any ideas would be greatly appreciated Thanks!! |
||||||||
|
|
|||||||
Please check in the UDF forum for a solution |
||||||||
|
|
|||||||
And see the TCP/IP-related FAQs in the FAQ Forum |
||||||||
|
|
|||||||
These two functions can help you: IsInSubnet() - Checks if a given IP address is in a specified subnet EnumIPInfo() Loop through all the IP Addresses you can find on your computer and if your computer is in a certain subnet like 10.250.2.0/27 (10.250.2.0-10.250.2.31), you can add printers and set one as default. Maybe for that you can use a select statement or an IN file or so. Maybe this can help: http://www.kixtart.org/forums/ubbthreads...true#Post166337 |