Solved

Map/Change printer via Logon Script

Posted on 2012-04-13
2
345 Views
Last Modified: 2012-05-09
Hi,

We have a new Printer Server and I'd like to know, is the following possible:

Create a script that will look at the network printers currently mapped on a PC and map to another printer based on what it finds?

For instance:

Computer1 has \\printserverold\printer1 mapped.

Can a script run at logon that will say:  

"Right, I've found \\printserverold\printer1 so remove this and map \\printerservernew\printer1

Crucially, the printer share names are the same on both the new and old Printer Servers.

Hopefully I've explained ok!  

Thanks
0
Comment
Question by:paul-ashton
[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
2 Comments
 
LVL 8

Expert Comment

by:X-treem
ID: 37841846
use loginscript, vbs and then

set objN = CreateObject("Wscript.Network")

EnumPrinterConnections
RemovePrinterConnection

objN.AddWindowsPrinterConnection "\\server\printer"
0
 
LVL 65

Accepted Solution

by:
RobSampson earned 500 total points
ID: 37848201
Hi, there's a post here that uses a script I created some time back:
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Q_26832394.html

Let me know if you need any help with it.

Regards,

Rob.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Welcome back!  My apologies for taking so long to write part two of this series; it's been a long time coming!  As I promised in Part 1, this article will focus on how to locate those elusive AD properties that you are searching for.  Why is this us…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

749 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