Error: "Operation could not be completed (error 0x000006d1)" when adding a Samba based network printer to Vista

If you are getting the following error while adding a Samba based network printer to Vista:

Windows cannot connect to the printer. Operation could not be completed (error 0x000006d1).

And you have a Samba server (version 3.0 and above) consider using the following technique to add the printer:

  • Add a local printer (not a network one!)
  • Select ?create a new port?
  • Select ?Local port? as type of port
  • In the port name enter the printer?s SMB path
  • Select the right driver
That?s all.