LPT1 redirection via GroupPolicy

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
 
D

DMC

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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top