selormquarshie
(Getting the hang of it)
2007-09-08 04:41 AM
How to Capture IP and deploy printer

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!!


NTDOCAdministrator
(KiX Master)
2007-09-08 06:27 AM
Re: How to Capture IP and deploy printer

Please check in the UDF forum for a solution

Sealeopard
(KiX Master)
2007-09-08 02:20 PM
Re: How to Capture IP and deploy printer

And see the TCP/IP-related FAQs in the FAQ Forum

Witto
(MM club member)
2007-09-09 10:29 AM
Re: How to Capture IP and deploy printer

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