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.

basically

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?

Thanks

Top
#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.

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

Registered: 2000-07-28
Posts: 11623
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.

Top
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 248 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.05 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