Page 1 of 1 1
Topic Options
#191836 - 2009-01-19 06:03 PM Determine Default Print Server
Cntdwn Offline
Just in Town

Registered: 2008-08-28
Posts: 4
To set default printers, I use the AddPrinterConnection/SetDefaultPrinter commands for the specific group or user. This creates the connection no problem, all is good.

What I want to do now though is actually determine if the primary print server is up. If not, automatically set the default printer to the secondary print server that is in standby.


1. Check to see if PrtServe1 is up
2. IF it is up - set it as the default print server and map the printers
3. IF it is down - use PrtServe2 as the default and map the printers

We try to make as much as possible invisible to the user.

Is this possible with kix?


#191837 - 2009-01-19 06:13 PM Re: Determine Default Print Server [Re: Cntdwn]
Gargoyle Offline
MM club member

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
You could use the WMIService() to check for the spooler service state.
Today is the tomorrow you worried about yesterday.

#191842 - 2009-01-19 08:58 PM Re: Determine Default Print Server [Re: Cntdwn]
NTDOC Administrator Offline

Registered: 2000-07-28
Posts: 11622
Loc: CA
You could make it happen during logon but to have one work like that on the fly you would need to run KiXtart as a service or as a script that is always running and monitoring the Print Server. If you really have that much need then I think you need to spend more time working on fixing your Print Server.

We had 2 print servers at my old work that managed 400 printers each and they were rarely down. New place only serves about a dozen printers but both of those are always up as well. Make sure you're not using old print drivers that were not designed for the OS they're installed on as that can cause print spooler crashing.

Page 1 of 1 1

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

Who's Online
0 registered and 430 anonymous users online.
Newest Members
marcorse, KeithDTX, WuterHoestee, shootnhack, got2begin
17854 Registered Users

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

Search the board with:
superb Board Search
or try with google: