Friday, September 12, 2008

[THIN] Re: OT: changing print server

I also think the guys over at ctrl-alt-del.com.au have a tool for this.

Greg

On Fri, Sep 12, 2008 at 8:48 AM, Minero, Hector B CIV NSWCDD, K55 <hector.minero@navy.mil> wrote:
It looks like this may work.
Thanks,
 

_______________________________
Hector Minero
NSWCDD K55

-----Original Message-----
From: thin-bounce@freelists.org [mailto:thin-bounce@freelists.org] On Behalf Of Steve Snyder
Sent: Thursday, September 11, 2008 5:07 PM
To: thin@freelists.org
Subject: [THIN] Re: OT: changing print server

we just did the same thing - here's a vbs script written by our crack script kiddie
 
 

On Error Resume Next

 

Dim objWMIService, objNetwork

Dim colItems

Dim strComputer, strNewServer

 

Set objNetwork = WScript.CreateObject("WScript.Network")

 

strComputer = "."

strNewServer = "Your_New_Print_Server_Name_Here"

 

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")

Set colItems = objWMIService.ExecQuery("Select * from Win32_Printer",,48)

 

For Each objItem in colItems

     If lcase(objItem.ServerName) = "\\your_old_print_server_name_here" then

          objNetwork.RemovePrinterConnection objItem.ServerName & "\" & objItem.ShareName, true, true

          objNetwork.AddWindowsPrinterConnection "\\" & strNewServer & "\" & objItem.Sharename

     End If

Next



On Fri, Sep 12, 2008 at 8:16 AM, Minero, Hector B CIV NSWCDD, K55 <hector.minero@navy.mil> wrote:
I've already got the new print server (server2) with all printers installed.
However, the users out there are still referencing
 
printer1 on server1
 
I'd like all the printers to reference server2.
 
I can tell the users to delete all the printers and add the new ones, but I was hoping there would be an automatic way of doing this.  Does Print Migration do this?
 
________________________________________
Hector Minero
NSWCDD Code K55


From: ananth padmanabham
Sent: Thu 9/11/2008 11:48 AM
To: thin@freelists.org
Subject: [THIN] Re: OT: changing print server

Use Microsoft Print Migration tool......

Anantha Padmanabham K


--- On Thu, 11/9/08, Minero, Hector B CIV NSWCDD, K55 <hector.minero@navy.mil> wrote:
From: Minero, Hector B CIV NSWCDD, K55 <hector.minero@navy.mil>
Subject: [THIN] OT: changing print server
To: thin@freelists.org
Date: Thursday, 11 September, 2008, 8:41 PM

Hi all,
I need to change move our Print server to another server (from server1 to server2).
All our Windows XP clients are configured to go to server1.  Is the a way to automatically update their printers to go to server2? Update their printers?
 
________________________________________
Hector Minero
NSWCDD Code K55
 


Add more friends to your messenger and enjoy! Invite them now.


No comments: