Map Printers Based on Group Membership

Logon script that maps printers based on Active Directory group membership.

4.3 Star
Add to favorites
E-mail Twitter Digg Facebook
  • Very nice
    3 Posts | Last post September 04, 2009
    • A very nice and concise script.  
      I'm, by far, not good with VBscript, but I'll report the problems I found:
      In the first "Dim" line, I'm not sure but it doesn't appear that "dim i" needs to be in there.  I removed that.
      I found some errors with line wrapping; i.e. that should have been wrapped to the next line, but were not... or lines that were wrapped to the next line, but should have been.  This caused a few syntax errors that I was able to identify and iron out.  There are too many to mention, but anyone that looks at the code close enough can find them all.
      For the life of me, I couldn't get it to unset bTroubleFlag, so it was always processing the script with extra output.  I ended up commenting out the few lines that enables it.
      It would be nice if we could define our own OUs based from the root of our hierarchy.  I'm just too ignorant with VBscript to know how to do this.
      Adding to the previous statement, it would be nice if I could define a sub-OU under "Printers" called "Default".  For example:
             |-Power Users
      I tried defining "OU=Printers, OU=Default" but that didn't work.
    • Bleh, it didn't keep the heirarchy format I tried to define above.  "Default" should be a sub-OU under "Printers".  Everything from Admins to Users are sub-OUs under "Corporate".
    • I also didn't want it removing other network printers, so I removed that part of the script.