[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3700
  • Last Modified:

how to map network printer using gpo under windows server 2008

how to map network printer using gpo under windows server 2008
0
truybal
Asked:
truybal
1 Solution
 
jtdebeerCommented:
I have had same problem and found a WSH script

Save file as MapPrinter.vbs and load as Logon Script from a shared folder
You can add numerous printers.
The last line sets the default
rundll32 printui.dll,PrintUIEntry /in /n "\\Server\Printer1"
rundll32 printui.dll,PrintUIEntry /in /n "\\Server\Printer2"
rundll32 printui.dll,PrintUIEntry /in /n "\\Server\Printer3"
 
 
rundll32 printui.dll,PrintUIEntry /y /n "\\Server\Printer1"   

Open in new window

0
 
InterservCommented:
The following will also work as a vbs script that you can use a a logon script or apply as a startup script using GP


set wshnet = CreateObject("WScript.Network")
wshnet.AddWindowsPrinterConnection "\\server\Printer1"
wshnet.AddWindowsPrinterConnection "\\server\Printer2"
0
 
tigermattCommented:
In earlier versions of Windows Server, scripting was commonplace for mapping resources such as printers and network drives. However, Windows Server 2003 R2, and then Windows Server 2008, introduced several useful features to enable you to rid yourself of this scripting altogether, and switch over to a much better, more easily controlled approach.

In the case of printers, you deploy the printers using the "Deployed Printers" section of a Group Policy. If you want to push printers to ANY user who logs into any particular computer, you use the Computer Section; for a particular user who logs into ANY computer, use the User section. Alternatively you can push the printers through the Print Management console.

These instructions are for Server 2003 R2, but things are pretty much the same. The part which has changed the most is probably the installation procedure - you do this through the Server Manager (runs at logon), press "Add Role" and follow the wizard to install your server as a Print Server. http://www.windowsnetworking.com/articles_tutorials/Managing-Printers-Windows-Server-2003-R2.html

-tigermatt
0
 
truybalAuthor Commented:
thank you
0

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now