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
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);