Samba 3.0.23 introduces support for adding printer ports remotely using the Windows "Add Standard TCP/IP Port Wizard". This option defines an external program to be executed when smbd receives a request to add a new Port to the system. he script is passed two parameters: port name device URI The deviceURI is in the for of socket://<hostname>[:<portnumber>] or lpd://<hostname>/<queuename>. enum ports command /etc/samba/scripts/addport.sh