can I group computers to use specific printers?

Hi Experts,
i have a windows 2008 R2 domain controller. we have 3 classroom with 24 computers in each. Each classroom has its own printer. All printers are registered in AD.  All systems are on the same subnet,
Students however inadvertently print to the " wrong" printer i.e. A user in lab 3 might print to the printer in lab 1.  I need to control this so my question is: Can I group computers into their respective labs and force the systems to use the preinter in that lab?  can I achieve this though AD, GPO or VB script? What would you recommend?
Who is Participating?
sarjeakshayConnect With a Mentor Commented:
Yes this can be achieved. Create different OUs for different labs add computer in them respectively and follow the below procedure :

There is a Microsoft utility called PushPrinterConnections.exe which is found in the the C:\Windows\System32 directory on your server.

Here is how to push printer connections via Group Policy.

First, copy the PushPrinterConnections.exe file from the System32 directory on your server to your Desktop. Then follow these instructions:

1. Open the GPMC. 2. In the GPMC console tree, navigate to the domain or organizational unit (OU) that stores the computer or user accounts where you want to deploy the PushPrinterConections.exe utility. 3. Right-click the GPO that contains the printer connections that you want to deploy using Group Policy, and then click Edit. 4. Navigate to one of the following locations: If the printer connections are deployed per-computer, go to Computer Configuration, Policies, Windows Settings, Scripts (Startup/Shutdown). If the printer connections are deployed per-user, go to User Configuration, Policies, Windows Settings, Scripts (Logon/Logoff). 5. Right-click Startup or Logon, and then click Properties. 6. In the Startup Properties or Logon Properties dialog box, click Show Files. The Startup or Logon window appears. 7. Copy the PushPrinterConnections.exe file from the %WINDIR%\System32 folder to the Startup or Logon window. This adds the utility to the GPO, where it will replicate to the other domain controllers with the Group Policy settings. 8. In the Startup Properties or Logon Properties dialog box, click Add. The Add Script dialog box appears. 9. In the Script Name box, type: PushPrinterConnections.exe 10. To enable logging on client computers running Windows Server 2003, Windows XP, or Windows 2000, in the Script Parameters box, type: –logLog files are written to %WINDIR%\temp\ppcMachine.log (for per-computer connections) and to %temp%\ppcUser.log (for per-user connections) on the computer where the policy is applied. 11. In the Add Script dialog box, click OK. 12. In the Startup Properties or Logon Properties dialog box, click OK. 13. Use GPMC to link the GPO to other OUs or domains to which you want to deploy the PushPrinterConnections.exe utility.
Yes, you can add computers into an OU based on their location with a GPO that pushes the printer to the computer. Or you can use security groups to have computers in these location and the use a GPO that pushes a printer apply only to a specific set of computers based on the filter.

OU/sub OU helps in representing your set up
AD top
    LABs GPOS apply to all lab computers
           LAB room1 GPO deploying printer
           LAB room2 ...
Nagendra Pratap SinghCommented:
You may be able to allow only certain hosts/IPs to some network printers.
The idea is from here.

Alternatively, you can remove all printers and add them using GPO. Make GPOs like room1gpo, room2gpo and in each gpo install a certain printer. Also make groups like room1computer, room2computers.

Remove read rights to one GPO by everyone and just add the room1computers group to the read permissions.

HTH. MS has thrown hands up
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.