Page 1 of 1 1
Topic Options
#113501 - 2004-02-06 06:05 PM Creating (IP) printer ports on windows 2000
mvdw Offline
Starting to like KiXtart

Registered: 2001-05-01
Posts: 124
Loc: Voorburg, Netherlands
Hi all,

I am working on a project involving a large printer migration to a new platform. We will be using Windows 2000 (at least that's the plan). I figured there would be a nice way to create the necessary ports and queues using WMI. I had already spotted the sample scripts in WinXP (prnport.vbs etc.) but when I started testing I quickly found out that these scripts use WMI classes that have been introduced in WinXP/2003 and are NOT available in win2K.

Does anybody have any ideas how I go about creating a bunch of printer ports (lpr) on a windows 2000 machine? I already searched the web for command line tools or something else but wasn't able to find anything useful yet.

Anybody here has experience with this? or has an idea?

any help would be greatly appreciated!
_________________________
rgrds, Maarten

Top
#113502 - 2004-02-06 10:53 PM Re: Creating (IP) printer ports on windows 2000
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Did you try looking in the UDF forum? There are some UDFs there, like FnTCPIPPort() and IPPortConnect() to name a couple.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#113503 - 2004-02-06 11:17 PM Re: Creating (IP) printer ports on windows 2000
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
now, are you talking about server or workstation?
_________________________
!

download KiXnet

Top
#113504 - 2004-02-07 03:26 PM Re: Creating (IP) printer ports on windows 2000
mvdw Offline
Starting to like KiXtart

Registered: 2001-05-01
Posts: 124
Loc: Voorburg, Netherlands
Les:
Thanks for pointing me to the functions but what they do is a registry hack and such methods require a reboot.
It's an option but since I will be running this over multiple print servers which will contain 1000+ queues/ports I would really like to use a bit more robust and flexible solution.
The final situation must be manageable form a cmdb and all port/printer configuration will be automated. I don't think the customer will like a solution which requires reboots of servers that host business critical queues.. unfortunately.

Lonkero:
the design states we should use windows 2000 advanced server. As I said I have already hinted the use of 2003 but if the answer is no I will still need to work something out..
_________________________
rgrds, Maarten

Top
#113505 - 2004-02-07 09:12 PM Re: Creating (IP) printer ports on windows 2000
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
While I can not speak on the UDFs you are looking at, I do know for a fact that you can simply restart the Spooler service and it will recognize any new ports that have been added to the registry. See the AddPrinter() UDF for an example on how to restart the spooler services.
Top
#113506 - 2004-02-07 11:07 PM Re: Creating (IP) printer ports on windows 2000
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
al_po is correct.
after all, easiest way to do a printServer config is in fact to copy the drivers and fix the registry accordingly.
afaik, similar solution I did with kix is still in place in my last workplace.
to restart the spooler service in critical environment, wait for the most silent moment.
_________________________
!

download KiXnet

Top
Page 1 of 1 1


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

Who's Online
1 registered (Allen) and 466 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.056 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

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