Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Kixscript detecting local printer?

Status
Not open for further replies.

Leozack

MIS
Oct 25, 2002
867
GB
Hi all - I've got a number of pcs on this site with a local printer, and a local family of pcs that want to print to that print as default, then for other families I want to print to network printers.
Essentially my script gives everyone the network printers and defaults to them, then checks the pc name against a list of names and if it matches it sets adds and sets default the printer on the nearby local pc.
However - the pcs actually hosting the printers locally aren't networking to their own printer so setting the network version of that printer as default won't work, so they still default to the original default of the network printers.
So - how do I check if there is a local printer (not the stupid office imaging 'printer') and if there is set it as default? I've found various types of solutions but I can't make any work, not even when suggested to look through
HKLM\System\CurrentControlSet\Control\Print\Printers

_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);
 
Noone has a way for alogon script (ixscript preferably) to set whatever printer is local and online to be default after running through setting network ones default which I do currently? You can't set the shared 'version' of the printer that's local and shared on the network to be default on the machine that's hosting it, though all others you can. eg a script can say add \\pc1\printer1 and make it default, but on pc1 this will fail as it doesn't have that shared printer, it's SHARING that printer and only has it locally.

_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top