The company I work for uses a combination of batch and VB script to map network shares and printers. The batch login script runs through a bunch of
net use [drive letter] /delete /y 2> NUL > NUL
commands to wipe out all existing share maps. It then fires off a VB script, which loops thru a CSV file containing a list of security groups and respective maps. Ex:
Group Accounting,Q:,\\[server]\[share] Group Accounting,T:,\\[server]\[share]
Next, the batch script fires off another VB script, which maps network printers. We have 7 total.
The question is when an employee moves departments (i.e., moves from Sales to Legal) how do you handle printer and file share maps? Our current method works perfectly for file share maps, but printers... not so much. If we delete all network printer maps and remap at each login, users who haven't moved departments lose their settings (hold print, etc.), which is not acceptable.
Our current workaround is to simply not delete any printer maps, but this means employees can (and do) accidentally print to the wrong printer, which presents a security issue if the document is sensitive.
Thank you in advance for your insight.