Logon Script to add Printers

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

I am trying to create a vbscript logon scipt that will add
certain printers if a user is a member of a certain
group. The problem is how do you check if the user is a
member of a group. See what I want to do is first do a
membership check and if they are a member of the IT group
add these printers and if they are a member of Accounting
then add theses printers. I know how to add printers
using vbscript but I don't know how to do a membership
check.
Thanks
 
I'm not sure how to script that but there are other ways to accomplish it.
You could do it with group policies. Create multiple group policies that
run the various printer scripts and filter the group policies based on group
membership. You filter them by changing the security so that only the group
will have the permission to read and apply group policies. In your case you
could create a group policy that runs the script to map printers for the IT
group and one that runs the script to map printers for the Accounting group.
Edit the permissions on each group policy object so that only the group that
should receive it has read and apply GP permission on it.

The other option would be to use ifmember.exe, it checks group membership
and will run a certain script based on the group membership. It is
available in the resource kit.

--
Tim Hines, MCSE, MCSA
Windows 2000 Directory Services

=====================================================
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top