Solved

How to Globally change printer settings

Posted on 2008-06-26
5
406 Views
Last Modified: 2008-07-23
Hi
We run Windows 2003 servers with XP clients. Does anyone know an easy way of globally changing the printer name/printer share name on all clients that have that network printer installed, without having to go to each machine?
Arun
0
Comment
Question by:arunuk
5 Comments
 
LVL 11

Accepted Solution

by:
CMYScott earned 168 total points
ID: 21875588
changing the printer name can be done on the machine that shares the printer by editing the printer properties

changing the share name - on all clients - I believe you'd have to do with a login script or possibly thru a group policy.
0
 
LVL 2

Assisted Solution

by:QEDeh
QEDeh earned 166 total points
ID: 21875986
0
 
LVL 17

Assisted Solution

by:StrifeJester
StrifeJester earned 166 total points
ID: 21883588
We currently use VB script to deploy our printers based on Windows Security Groups, this also makes it easy to administer rights to those printers so we don't have jobs from one end of the building ending up on the other since the groups are already created.  I have attached the first couple of lines of my script hope it helps.  This script also maps network drives based on groups as well.
'==========================================================================

'

' VBScript Source File -- Created with SAPIEN Technologies PrimalScript Professional 4.5

'

' NAME: Logon2008.vbs 

'

' AUTHOR: Justin Ellenbecker

' DATE  : 6/10/2008

'

' COMMENT: Login script with parts taken original script.

'          Less Lines and sorted to add printers based on permission groups.

'

'========================================================================== 

Set objNetwork = CreateObject("Wscript.Network")

Set objFSO = CreateObject("Scripting.FileSystemObject")

Set objSysInfo = CreateObject("ADSystemInfo")

strUser = objSysInfo.UserName 

Set objUser = GetObject("LDAP://" & strUser)

groups = objUser.GetEx("memberOf")

Set objWshShell = CreateObject("Wscript.Shell")

For Each oGroup In groups

 Set adgroup = getobject("LDAP://" & oGroup) 

 groupName =  Right(adGroup.name,Len(adGroup.name)-3)

 Select Case groupName

  Case "Printing-Group"

   objNetwork.AddWindowsPrinterConnection "\\ServerName\PrinterName 1"

   objNetwork.AddWindowsPrinterConnection "\\ServerName\PrinterName 2"

   objNetwork.AddWindowsPrinterConnection "\\ServerName\PrinterName 3"

   objNetwork.AddWindowsPrinterConnection "\\ServerName\PrinterName 4"

   objNetwork.AddWindowsPrinterConnection "\\ServerName\PrinterName 5"

   objNetwork.AddWindowsPrinterConnection "\\ServerName\PrinterName 6"

   objNetwork.SetDefaultPrinter "\\ServerName\PrinterName 1"

   MapDrive "O:","\\ServerName\Share"

 End Select

Next

Sub MapDrive(letter, path)

 On Error Resume Next

 objNetwork.MapNetworkDrive letter, path

 If Err.Number <> 0 Then

  objNetwork.RemoveNetworkDrive letter, True, True

  objNetwork.MapNetworkDrive letter, path 

 End If

End Sub

Open in new window

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

896 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now