Assing Printer to OU

M

MATT

I have several printers installed on a single printer
server, connected with a TCP/IP ports. These printers are
shared, and published in AD. I would like to be able
to "assign" the printer to specific OU's, so that if a
computer account is in that OU, that computer will print
to that printer. If the computer moves to a different OU,
it prints to the other printer. (Automatically, or with
scripts). Is this possible? Could someone explain, or
tell me where documentation is
Thank you
 
S

Simon Geary

That should be easy enough to do with logon scripts. Assign a computer
startup script to the GPO of each OU and include a 'net use lpt1
\\server\printer /persistent:no' command.
 
S

Srikanth N

Matt,

To achieve this goal, I would suggest using Group Policy settings. There
are two types of configurations that can be set for printers within a
policy: Computer Configuration and User Configuration. Under the Computer
Configuration, I would suggest you to have a look at the following settings
to achieve this goal:

Computer Location:
Specifies the default location criteria used when searching for printers.

This policy is a component of the location tracking feature of Windows 2000
printers. To use this policy, enable location tracking by enabling the
"Pre-populate printer search location text" policy.

When location tracking is enabled, Windows 2000 uses the specified location
as a criteria when users search for printers. The value you enter here
overrides the actual location of the computer conducting the search.

Enter the location of the user's computer. When a user searches for a
printer, Windows 2000 uses the specified location (and other search
criteria) to find a printer nearby. You can also use this policy to direct
users to a particular printer or group of printers that you want them to
use.

Pre-populate printer search location text:
Enables the physical location tracking support feature of Windows 2000
printers.

Location tracking lets you design a location scheme for your enterprise and
assign computers and printers to locations in your scheme. Location
tracking overrides the standard method of locating and associating users
and printers, which uses the IP address and subnet mask of a computer to
estimate its physical location and proximity to other computers.

If you enable location tracking, a Browse button appears beside the
Location box in the Find Printers dialog box and on the General tab in the
properties for a printer. This lets users browse for printers by location
without knowing the precise location (or location naming scheme). Also, if
you enable the "Computer location" policy, the default location you enter
appears in the Location box.

If you disable this policy or do not configure it, location tracking is
disabled. Printer proximity is estimated based on IP address and subnet
mask.

For further assistance, I would also suggest you to refer the following
knowledge base article:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;234270

Hope this helps!
Srikanth N

This posting is provided "AS IS" with no warranties, and confers no rights.
 
C

Chriss3 [MVP]

Hello Matt

You can assign the follow script as an startup or logon script assigned
within a GPO linked to the partiuclar OU.

'Sample Script code from technet script center
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\PrintServer1\Xerox300"
WshNetwork.SetDefaultPrinter "\\PrintServer1\Xerox300"


--
Regards
Christoffer Andersson
Microsoft MVP - Directory Services

No email replies please - reply in the newsgroup
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top