Page 1 of 1 1
Topic Options
#180266 - 2007-09-08 04:41 AM How to Capture IP and deploy printer
selormquarshie Offline
Getting the hang of it

Registered: 2006-12-24
Posts: 85
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!!

Top
#180268 - 2007-09-08 06:27 AM Re: How to Capture IP and deploy printer [Re: selormquarshie]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Please check in the UDF forum for a solution
Top
#180272 - 2007-09-08 02:20 PM Re: How to Capture IP and deploy printer [Re: NTDOC]
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
And see the TCP/IP-related FAQs in the FAQ Forum
_________________________
There are two types of vessels, submarines and targets.

Top
#180298 - 2007-09-09 10:29 AM Re: How to Capture IP and deploy printer [Re: Sealeopard]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
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

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 515 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.053 seconds in which 0.024 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org