Script to Add Printers based on if the target computers are in an OU - TechRepublic
Question
May 12, 2009 at 02:13 AM
chris.eagles

Script to Add Printers based on if the target computers are in an OU

by chris.eagles . Updated 17 years, 1 month ago

Hi,

Is it possible to write a script, most likely vbs that calls rundll32 printui.dll to add network printers to computers depending on which OU/Computer Group the computers are in?

I already use the above command to add printers to individual computer groups, but each room requires another policy, is there any way to consolidate all the policies into one, perhaps using if statements, if so I’m not a dstrong vbs scripter could somone give me an idea of the code required?

Thanks for any Help!

This discussion is locked

All Comments