LPT1 redirection via GroupPolicy

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

We have some older applications that must print to LPT1.
I would like to add the Net Use LPT1: command to a login
script so that LPT1 is redirected to networked printers.
However, we have many networked printers and I would like
to use a variable, so that the users default printer will
have the LPT1 redirection.

For instance, in the login script I would put:

net use lpt1: %variable_4_default_printer% /persistent:yes

Is there a variable for the Default Printer? Or what
other options do I have under Group Policies, I really do
not want to set this up on each machine, or create 200
login scripts.

Thanks,
Mike
 
Use Kixtart to read the default printer value from the
registry. Store the value.

Then do your net use command.

ie. If "Default printer" = a
net use lpt1: "\\server\printera"

If "Default printer" = b
net use lpt1: "\\server\printerb"
 
Back
Top