hidden hit counter
Welcome to Soft32 Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Relocating a networked printer to a different location & n..

 
   Soft32 Home -> Windows -> Print & Fax RSS
Next:  Windows - Delayed Write Failed  
Author Message
Q

External


Since: Jul 03, 2007
Posts: 9



(Msg. 1) Posted: Thu Jul 02, 2009 6:25 am
Post subject: Relocating a networked printer to a different location & name chan
Archived from groups: microsoft>public>windowsxp>print_fax (more info?)

Hey everyone, I'm not sure I'm at the right place for this..

Here is my issue.

We have a print server with 23 networked printers. We are relocating a
computer lab to a different location and the printer that belongs to that lab
is being relocated as well. Our printers are named based on building/room
number.

My question is, what is the best way "best practice" on renaming the printer
and having all the Windows XP clients (300 of them) updated with the updated
printer name?


Thanks
Quinton
Back to top
Login to vote
Alan Morris [MSFT]

External


Since: Oct 25, 2005
Posts: 223



(Msg. 2) Posted: Thu Jul 02, 2009 11:10 am
Post subject: Re: Relocating a networked printer to a different location & name chan [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

renaming the printer will break the connection from the client. There are a
couple of scripts available that will look for the old server name and
printer, delete the connection, then add the new connection to the machine.

for just the one connection, I suggest the scripts included in XP in
system32 to delete the connection, then add the new. You can set it as
default at the same time. If you set this up as a logon script you need to
run this in user context.

prnmngr -d -p "\\server\printer"

prnmngr -ac -p "\\server\NEWprinter"


cscript %windir%\system32\prnmngr.vbs /?
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Usage: prnmngr [-adxgtl?][c] [-s server][-p printer][-m driver model]
[-r port][-u user name][-w password]
Arguments:
-a - add local printer
-ac - add printer connection
-d - delete printer
-g - get the default printer
-l - list printers
-m - driver model
-p - printer name
-r - port name
-s - server name
-t - set the default printer
-u - user name
-w - password
-x - delete all printers
-xc - delete all printer connections
-xo - delete all local printers
-? - display command usage

Examples:
prnmngr -a -p "printer" -m "driver" -r "lpt1:"
prnmngr -d -p "printer" -s server
prnmngr -ac -p "\\server\printer"
prnmngr -d -p "\\server\printer"
prnmngr -x -s server
prnmngr -xo
prnmngr -l -s server
prnmngr -g
prnmngr -t -p "\\server\printer"


--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/search/?adv=1

This posting is provided "AS IS" with no warranties, and confers no rights.

"Q" <Q.TakeThisOut@discussions.microsoft.com> wrote in message
news:6983D141-F505-42F6-B42C-974D3D27D060@microsoft.com...
> Hey everyone, I'm not sure I'm at the right place for this..
>
> Here is my issue.
>
> We have a print server with 23 networked printers. We are relocating a
> computer lab to a different location and the printer that belongs to that
> lab
> is being relocated as well. Our printers are named based on building/room
> number.
>
> My question is, what is the best way "best practice" on renaming the
> printer
> and having all the Windows XP clients (300 of them) updated with the
> updated
> printer name?
>
>
> Thanks
> Quinton
Back to top
Login to vote
Q

External


Since: Jul 03, 2007
Posts: 9



(Msg. 3) Posted: Fri Jul 03, 2009 4:29 am
Post subject: Re: Relocating a networked printer to a different location & name [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thank your for your reply Alan, much appreciated!

I will give it a shot.

Quinton
Back to top
Login to vote
Q

External


Since: Jul 03, 2007
Posts: 9



(Msg. 4) Posted: Thu Jul 09, 2009 6:21 am
Post subject: Re: Relocating a networked printer to a different location & name [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Alan,

I'm running into an issue when testing this...

When I execute the script while logged into the computer it works without
issues. When I set it up to run as a start up script, the script executes,
but when I login, nothing has changed. (the old printers are still there)

I wasn't at this particular company when the computer image was created, but
I'm suspecting that the printers were added to the Default user profile, and
whenever someone logs in, the profile is being copied therefore adding the
printers to the person logging in.

Could this be whats actually happening? If so, what would I have to do to
get it to work?


Regards
Quinton
Back to top
Login to vote
Alan Morris [MSFT]

External


Since: Oct 25, 2005
Posts: 223



(Msg. 5) Posted: Thu Jul 09, 2009 9:03 am
Post subject: Re: Relocating a networked printer to a different location & name [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

It's possible the network is not fully initialized when the script kicks in.
If you have Fast User Logon enabled I'd almost guarantee it. If the
printers where added as per machine connections using rundll32 and printui
interfaces, the printers will be sitting in the registry under

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Connections

you will need to use rundll32 to remove them



--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/search/?adv=1

This posting is provided "AS IS" with no warranties, and confers no rights.

"Q" <Q.RemoveThis@discussions.microsoft.com> wrote in message
news:A85393DE-AD62-451F-8B92-60953D79C8E1@microsoft.com...
> Hi Alan,
>
> I'm running into an issue when testing this...
>
> When I execute the script while logged into the computer it works without
> issues. When I set it up to run as a start up script, the script executes,
> but when I login, nothing has changed. (the old printers are still there)
>
> I wasn't at this particular company when the computer image was created,
> but
> I'm suspecting that the printers were added to the Default user profile,
> and
> whenever someone logs in, the profile is being copied therefore adding the
> printers to the person logging in.
>
> Could this be whats actually happening? If so, what would I have to do to
> get it to work?
>
>
> Regards
> Quinton
>
Back to top
Login to vote
Q

External


Since: Jul 03, 2007
Posts: 9



(Msg. 6) Posted: Thu Jul 09, 2009 9:50 am
Post subject: Re: Relocating a networked printer to a different location & name [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Alan, we run startup scripts all the time, so the network has to be fully
initialized. (We copy stuff to the PC's all the time)

I checked the registry and there is no /connections.

We have a profile called "make profile" which we alter, then copy it to the
Default user profile. I am currently logging in as the make profile account,
making the necessary printer adjustments, then logging out, then taking the
ntuser.dat file and copying it to


"Alan Morris [MSFT]" wrote:

> It's possible the network is not fully initialized when the script kicks in.
> If you have Fast User Logon enabled I'd almost guarantee it. If the
> printers where added as per machine connections using rundll32 and printui
> interfaces, the printers will be sitting in the registry under
>
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Connections
>
> you will need to use rundll32 to remove them
>
>
>
> --
> Alan Morris
> Windows Printing Team
> Search the Microsoft Knowledge Base here:
> http://support.microsoft.com/search/?adv=1
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Q" <Q DeleteThis @discussions.microsoft.com> wrote in message
> news:A85393DE-AD62-451F-8B92-60953D79C8E1@microsoft.com...
> > Hi Alan,
> >
> > I'm running into an issue when testing this...
> >
> > When I execute the script while logged into the computer it works without
> > issues. When I set it up to run as a start up script, the script executes,
> > but when I login, nothing has changed. (the old printers are still there)
> >
> > I wasn't at this particular company when the computer image was created,
> > but
> > I'm suspecting that the printers were added to the Default user profile,
> > and
> > whenever someone logs in, the profile is being copied therefore adding the
> > printers to the person logging in.
> >
> > Could this be whats actually happening? If so, what would I have to do to the default user profile. I got it working with a manual copy to a test machine. (printers were correct), but when I created the startup script to copy the file, its not working... (could be a typo or somthing) I'm just currently working on it right now.



> > get it to work?
> >
> >
> > Regards
> > Quinton
> >
>
>
>
Back to top
Login to vote
Q

External


Since: Jul 03, 2007
Posts: 9



(Msg. 7) Posted: Thu Jul 09, 2009 10:47 am
Post subject: Re: Relocating a networked printer to a different location & name [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The ntuser.dat file replacement seem to be working on my initial test. I have
to do a few more tests to make sure everything is ok.

"Alan Morris [MSFT]" wrote:

> It's possible the network is not fully initialized when the script kicks in.
> If you have Fast User Logon enabled I'd almost guarantee it. If the
> printers where added as per machine connections using rundll32 and printui
> interfaces, the printers will be sitting in the registry under
>
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Connections
>
> you will need to use rundll32 to remove them
>
>
>
> --
> Alan Morris
> Windows Printing Team
> Search the Microsoft Knowledge Base here:
> http://support.microsoft.com/search/?adv=1
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Q" <Q RemoveThis @discussions.microsoft.com> wrote in message
> news:A85393DE-AD62-451F-8B92-60953D79C8E1@microsoft.com...
> > Hi Alan,
> >
> > I'm running into an issue when testing this...
> >
> > When I execute the script while logged into the computer it works without
> > issues. When I set it up to run as a start up script, the script executes,
> > but when I login, nothing has changed. (the old printers are still there)
> >
> > I wasn't at this particular company when the computer image was created,
> > but
> > I'm suspecting that the printers were added to the Default user profile,
> > and
> > whenever someone logs in, the profile is being copied therefore adding the
> > printers to the person logging in.
> >
> > Could this be whats actually happening? If so, what would I have to do to
> > get it to work?
> >
> >
> > Regards
> > Quinton
> >
>
>
>
Back to top
Login to vote
Display posts from previous:   
Related Topics:
XP PRO PROBLEM WITH PRINTING TO ATTACHED USB OR TO SEPERAT.. - I have a XP PRO machine with a strange printer problem, installed a new HP multifunction printer via USB then about 2..

print job stuck in que for printer hp psc 1410 all in one .. - I have an hp psc 1410 and i am connect to it through a network. Lately a bunch of print jobs get stuck in the que and....

Printer sharing security -- File and Printer Sharing turne.. - My usb printer is attached to one pc. I turned on File and Printer Sharing ("FPS") in order to share the pr...

Changing the incoming fax location - I have a client who is having a problem where he is receiving all his incoming faxes to his desktop and would like to....

Need help to re-install printer - Recently I was trying to reduce the number of items that start-up automatically with my Windows XP. I made a change..

How to use a printer wirelessly - I have a printer than has usb ports. Is it possible to get a usb wireless adapter to make my printer wireless? I have...
       Soft32 Home -> Windows -> Print & Fax All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
  Windows
 Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]