Solved

how to map network printer using gpo under windows server 2008

Posted on 2008-10-06
4
3,694 Views
Last Modified: 2012-05-05
how to map network printer using gpo under windows server 2008
0
Comment
Question by:truybal
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 8

Expert Comment

by:jtdebeer
ID: 22650246
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
 
LVL 4

Expert Comment

by:Interserv
ID: 22651225
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
 
LVL 58

Accepted Solution

by:
tigermatt earned 500 total points
ID: 22651332
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
 

Author Comment

by:truybal
ID: 22703017
thank you
0

Featured Post

Is Your DevOps Pipeline Leaking?

Is your CI/CD pipeline a hodge-podge of randomly connected tools? You’ve likely got a tool to fix one problem & then a different tool to fix another, resulting in a cluster of tools with overlapping functionality. Learn how to optimize your pipeline with Gartner's recommendations

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question