Thanks, sealeopard. I have looked at that function and several mapprinter functions.
My problem is that I need to use variables and I have a hard time writing the logic that searches for the group membership and determines the printer and print server for each and then either maps or unmaps the printers based upon either the ini file or group membership.
For the most part, I can get group membership or an ini file to work, but there are a few things I haven't figured out how to do. Only one of the methods should be used. For either, there are problems as pointed out in this thread.
1. if using groups, make sure user is only in one group that assigns default printers
2. if using an ini file for each computer, have the ini file duplicate the printer setup in the file on the computer (not user based). If printer not in INI file, delete. If in file, but not on pc, install. [ 13. October 2003, 21:15: Message edited by: tjcarst ]
|