Hello,
need to add a "if" statement.
If you have a cluster, you should only and only point to the virtual name,
never the node names.
Do you get where to put the if or do you need help ?
--
Cordialement,
Mathieu CHATEAU
English blog:
http://lordoftheping.blogspot.com
French blog:
http://www.lotp.fr
<> wrote in message
news:2e2acc00-3fc9-43d1-9420-...
On Nov 27 2007, 11:13 am, "Mathieu CHATEAU" <gollum...@free.fr> wrote:
> Hello,
>
> here is the updated script
> version:http://gollum123.free.fr/printermigrator.vbs
>
> Now you have to set:
> -A folder where a log per username is created:
> Set objFile = objFSO.CreateTextFile ("\\fileserver\Logs\printers\" &
> UserName & ".log")
>
> -The new print servernamein this file
> Set objFileServer = objFSO.OpenTextFile (LogonServer &
> "\netlogon\printers\default.txt", ForReading)
>
> -A CSV forchangingprintername:
> Set objfiletable = objFSO.OpenTextFile (LogonServer &
> "\netlogon\printers\Convtable.txt", ForReading)
> syntax is :
> oldname;newname
> --
> Cordialement,MathieuCHATEAU
> English blog:http://lordoftheping.blogspot.com
> French blog:http://www.lotp.fr
>
> <tristonhibb...@hotmail.com> wrote in message
>
> news:32ed377d-7237-43e2-bca3-...
>
>
>
> > On Nov 23, 1:33 pm, "MathieuCHATEAU" <gollum...@free.fr> wrote:
> >> ok it would be ready soon
>
> >> --
> >> Cordialement,
> >>MathieuCHATEAU
> >> English blog:http://lordoftheping.blogspot.com
> >> French blog:http://www.lotp.fr
>
> >> "Gaza" <G...@discussions.microsoft.com> wrote in message
>
> >>news:F8ADAB5D-D2CF-4D0D-AF07-...
>
> >> > Change over is planned for next week .. if you could do this, then
> >> > that
> >> > would be great.
>
> >> > regards,
> >> > Gary
>
> >> > "MathieuCHATEAU" wrote:
>
> >> >> the original one does it, i will include it back after some cleaning
>
> >> >> are you in a hurry ?
>
> >> >> --
> >> >> Cordialement,
> >> >>MathieuCHATEAU
> >> >> English blog:http://lordoftheping.blogspot.com
> >> >> French blog:http://www.lotp.fr
>
> >> >> "Gaza" <G...@discussions.microsoft.com> wrote in message
> >> >>news:8461B149-F0F5-4CDC-858D-...
> >> >> >A nice addition to your script would be to allow for the printer
> >> >> >share
> >> >> >name
> >> >> >changingtoo. The old chgprint.exe tool read a list of old
> >> >> > \\printoldsrv\prshare1 tonew\\printnewsrv\prshare99 from a text
> >> >> > file.
>
> >> >> > As we are also moving from 3 servers to one, and at the same time
> >> >> >changing
> >> >> > the printernamestandard, the above feature would be beneficial.
>
> >> >> > regards,
> >> >> > Gary
>
> >> >> > "MathieuCHATEAU" wrote:
>
> >> >> >> Hello,
>
> >> >> >> I am providing a vbscript on my blog do to this:
> >> >> >>http://lordoftheping.blogspot.com/20...hange-printer-...
>
> >> >> >> --
> >> >> >> Cordialement,
> >> >> >>MathieuCHATEAU
> >> >> >> English blog:http://lordoftheping.blogspot.com
> >> >> >> French blog:http://www.lotp.fr
>
> >> >> >> "Gaza" <G...@discussions.microsoft.com> wrote in message
> >> >> >>news:1A5E85D5-38BF-4ABE-83C5-...
> >> >> >> > We have consolidated 3printservers into one and before
> >> >> >> > switching
> >> >> >> > off
> >> >> >> > the
> >> >> >> > oldprintservers we need to remap the client machines to thenew
> >> >> >> >server.
>
> >> >> >> > In the days of NT4 we used the tool CHGPRINT.exe to do this,
> >> >> >> > which
> >> >> >> > worked
> >> >> >> > a
> >> >> >> > treat. Anyone know of a tool/script that will run as part of
> >> >> >> > logon
> >> >> >> > script,
> >> >> >> > search the clients list of connected printers, remap the
> >> >> >> > printer
> >> >> >> > to
> >> >> >> > a
> >> >> >> > differentserverand possibly different sharename.
>
> >> >> >> > I have tried running chgprint.exe but does not appear to work
> >> >> >> > under
> >> >> >> > W2k3
> >> >> >> > R2
> >> >> >> > Sp1server& WinXP SP2 clients. I have approx 1800 clients and
> >> >> >> > 175
> >> >> >> > printers.
>
> >> >> >> > thanks in advance,- Hide quoted text -
>
> >> - Show quoted text -
>
> > I took a look at your vbs script, and it looks real good. Did you
> > ever get a chance to modify the script so that it will account for the
> >queuenamechangingon the new print server?- Hide quoted text -
>
> - Show quoted text -
Hello,
This script is working great! One minor issue that I think I can get
around, but I want to see what you have to say about it.
The script will try to convert all network printers regardless of what
print server that printer is on. In my case there are only certain
printers on one printer server that we are migrating and only the
printers on that one server will be migrated. So for the printers
that were on that server, the script worked beautifully, however, for
printers that were on a different print server, it simply tried to
covert it but failed and the printer was deleted. I know this is
asking much, but is there a way around that. In others words, can we
have the script just look to convert printers that are on one
particular print server. Just to throw a curveball, the print server
is clustered, so it can be referred to by 1 of 3 names. Thanks again
for all of your help.
Regards,
Triston