Afficher un message
Vieux 10/10/2007, 11h04   #3
Beanz
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Replace Users Printers via Script


On Oct 9, 7:03 pm, "Harvey Colwell" <HarveyColw...@effingham.net>
wrote:
>
> Here is a script that I wrote for a customer. They had 15 prints that needed
> to be migrated, I've cut the number down here to save space (Lines 35-39).
>
> The script works by the information stored in the array aPrinters (Line 35).
> Each element of this array is a separate array containing two elements. The
> first element is the old printer's UNC (\\PServer1\Printer1) and the second
> element if the new printer's UNC (\\PServer2\Printer1). You can also just
> remove printers that no longer exist on the new Print Server by making the
> second element the word "Remove" (Line 37).
>
> The script can be called from the login script or ran manually.
>
> A separate log file is created for each computer. The customer wanted the
> logs put on the a network share S:\Printers\Log\<computername>.log (Line
> 48). The log file has a line for each printer found on the local PC stating
> the local printer's name and migration status, "No match found!" (not listed
> in the array), "Remove Only", "Successfully Migrated", or "Not Migrated"
> (some error occurred while migrating).
>
> Each line of the listing below is preceded by a line number. If not, then
> your email client has wrapped the line. Be sure to combined all wrapped
> lines then remove the line numbers.


Your script was perfect! Thanks very much!

  Réponse avec citation
 
Page generated in 0,05394 seconds with 9 queries