I am making an install script for installing printers without having to reboot, I have been successful so far except when I try to configure the printer driver.
I can use...
'rundll32 printui.dll,PrintUIEntry /e /n "printername"'
To bring up printing preferences but I have searched the internet for find a command to bring up "printer defaults" normally found in the advance tab and found nothing. This is necessary for other computers trying to access this printer.
I have also tried to import printer settings via
"RUNDLL32 PRINTUI.DLL,PrintUIEntry /Sr /n " & """" & $drivername & """" & " /a " & """" & @TempDir & "\TSC TDP-247.dat" & """"
But there are issues making this work with 64bit computing, mostly the “.dat” is not interchangeable from different 64bit systems.
Anyway, How do I get to “Printing defaults” via CMD? Or is there some other way to set printer defaults automaticly?
I can use...
'rundll32 printui.dll,PrintUIEntry /e /n "printername"'
To bring up printing preferences but I have searched the internet for find a command to bring up "printer defaults" normally found in the advance tab and found nothing. This is necessary for other computers trying to access this printer.
I have also tried to import printer settings via
"RUNDLL32 PRINTUI.DLL,PrintUIEntry /Sr /n " & """" & $drivername & """" & " /a " & """" & @TempDir & "\TSC TDP-247.dat" & """"
But there are issues making this work with 64bit computing, mostly the “.dat” is not interchangeable from different 64bit systems.
Anyway, How do I get to “Printing defaults” via CMD? Or is there some other way to set printer defaults automaticly?