I am trying to test migrating printers from microsoft print server to a samba share but encountering problems. net rpc printer MIGRATE PRINTERS "printerName" -U Administrator%password -S SourceIP -I TargetIP -p 50139 cannot open printer \\SourceIP\LocalOne on server \\SourceIP: WERR_INVALID_PRINTER_NAME The SourceIP is the ipaddress of a microsoft print server and the printerName is the name of a printer that is shared as printerName
Guenther, this one should be yours I think.
Maybe you just got the syntax wrong. -I is to define an ip-address (corresponding to the name given in -S), not to define the ip-address of the destination server (try using --destination=1.2.3.4 for that).
(In reply to comment #2) > Maybe you just got the syntax wrong. > > -I is to define an ip-address (corresponding to the name given in -S), not to > define the ip-address of the destination server (try using --destination=1.2.3.4 > for that). I tried the following command but still doesnt seem to work debugshell# net rpc printer MIGRATE PRINTERS "LocalOne" -U Administrator%password -S source --destination=dest migrating printer queue for: [\\source\LocalOne] / [LocalOne] cannot open printer \\dest\LocalOne on server \\dest: WERR_INVALID_PRINTER_NAME cannot get printer-info: DOS code 0x0000001f could not get printer, creating printer. creating printer: \\source\LocalOne could not create printer source is a microsoft print server. dest is the samba server
(In reply to comment #3) > (In reply to comment #2) > > Maybe you just got the syntax wrong. > > > > -I is to define an ip-address (corresponding to the name given in -S), not to > > define the ip-address of the destination server (try using --destination=1.2.3.4 > > for that). > > I tried the following command but still doesnt seem to work > > debugshell# net rpc printer MIGRATE PRINTERS "LocalOne" -U > Administrator%password -S source --destination=dest > migrating printer queue for: [\\source\LocalOne] / [LocalOne] > cannot open printer \\dest\LocalOne on server \\dest: WERR_INVALID_PRINTER_NAME > cannot get printer-info: DOS code 0x0000001f > could not get printer, creating printer. > creating printer: \\source\LocalOne > could not create printer > > source is a microsoft print server. dest is the samba server OK i made some more progress here but not there yet I added a addprinter command to the smb.conf and the value=smbaddprinter.pl (found in samba-3.0.20\examples\scripts\printing\cups) debugshell# net rpc printer MIGRATE ALL "test1" -U Administrator%passwd -S s1 --destination d1 migrating printer queue for: [\\s1\test1] / [test1] cannot open printer \\d1\test1 on server \\d1: WERR_INVALID_PRINTER_NAME cannot get printer-info: WERR_GENERAL_FAILURE could not get printer, creating printer. creating printer: \\s1\test1 printer [\\s1\test1] successfully added. migrating printer driver for: [\\s1\test1] / [test1] This seems like it worked but the URI of the printer doesnt get migrated correctly. what should i do to fix this.
Guenther, what's the status here? Can we close this?
Closing this bug and focusing on printmig.exe