How to install printer, via a script, based on who the user is
Posted on 2010-08-25
II have 2 groups of users, one group that has network accounts that all begin with a number whereas the other group does not. I want to see if there is a simple script that checks the username and if it starts with a number, add PrinterA(Group 1 queue). If it does not begin with a number add PrinterA(Group 2 queue). So, this would be for the same printer, but I have 2 ports for that pritner, so I am creating a queue for 1 group and another queue for the other group.
If it is easier to check the login via AD that is fine too. If there is a way to check the username, determine if it is in the Group 1 security group or the Group 2 security group then add the printer accordingly, that would work too.