Samba 3.0.23 introduced 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. The script is passed two parameters:
port name device URI
The deviceURI is in the format of socket://
Example: /etc/samba/scripts/addport.sh
Registry Hive | HKEY_LOCAL_MACHINE |
Registry Path | Software\Policies\Samba\smb_conf\addport command |
Value Name | addport command |
Value Type | REG_SZ |
Default Value |