

New-ItemProperty -Path $path -Name "TargetMAC" -Value "60-12-8B-84-58-CB" -PropertyType "STRING" New-ItemProperty -Path $path -Name "TargetPort" -Value "8611" -PropertyType "DWORD" New-ItemProperty -Path $path -Name "TargetAddress" -Value "24291520" -PropertyType "DWORD" New-ItemProperty -Path $path -Name "FAXInstalled" -Value "0" -PropertyType "DWORD" New-ItemProperty -Path $path -Name "Driver" -Value "CNMN6PPM.DLL" -PropertyType "String" New-ItemProperty -Path $path -Name "PMType" -Value "1" -PropertyType "DWORD" New-ItemProperty -Path $path -Name "BC Times" -Value "2" -PropertyType "DWORD" New-ItemProperty -Path $path -Name "Search Timeout" -Value "5000" -PropertyType "DWORD" New-ItemProperty -Path $path -Name "UDP Retry" -Value "3" -PropertyType "DWORD"

New-ItemProperty -Path $path -Name "Connect Timeout" -Value "3000" -PropertyType "DWORD" New-ItemProperty -Path $path -Name "UDP Timeout" -Value "30000" -PropertyType "DWORD" New-ItemProperty -Path $path -Name "TCP Timeout" -Value "30000" -PropertyType "DWORD" New-ItemProperty -Path $path -Name "BufferFullWait" -Value "40" -PropertyType "DWORD" New-ItemProperty -Path $path -Name "PortName FaxPrefix" -Value "CNBJNPFAX_" -PropertyType "String" New-ItemProperty -Path $path -Name "PortName Prefix" -Value "CNBJNP_" -PropertyType "String" $path = "HKLM:\System\CurrentControlSet\Control\Print\Monitors\Canon BJNP Port" Write-Log "Adding port for Canon IP110 series." New-Item -Path $path -Name "Canon BJNP Port" Remove-Item -Path "$path\Canon BJNP Port" -Recurse $path = "HKLM:\System\CurrentControlSet\Control\Print\Monitors" The settings are doneīy a script which gets some information of the printer (automatically).
#CHANGE PRINTER PORTS DRIVER#
I copied them one to one to my script, installed the canon printer driver in silent mode and added the port manually. When I do the installation of the port with the Canon Printer setup.exe, it installs the port without any problems. In the registry, under "HKLM\SYSTEM\CurrentControlSet\Control\Print\Monitors\" I added a new key "Canon BJNP Port" with the settings from the setup.exe (read with the process explorer from the sysinternals tools).

When I add the port type in the registry, it never appears in the available port type list (Devices and printers -> Print server properties -> Ports -> Add Port) I'm having an issue with adding a new printer port type to the available port list.
