Установить IPP принтер:1)
rundll32 printui.dll,PrintUIEntry /b "DisplayPrinterName on http" /x /n "part of the n switch" /if /f %windir%\inf\ntprint.inf /r "http://hostname/printers/sharename/.printer" /m "HP Laserjet 4000 Series PCL"
Справка по команде:
rundll32 printui.dll,PrintUIEntry /?
Дополнительная информация:
Для того, чтобы заработала печать из терминальной сессии в Windows Server 2008 R2 на перенаправленный Host-based принтер (GDI-принтер), нужно: 2) 3)
Disabled значение групповой политики Computer configuration - Administrative templates - Windows components - Remote Desktop Services - Remote Desktop Session Host - Use Remote Desktop Easy Print printer driver firstgpupdateЧтобы печатать по сети используя протокол LPD необходимо: 4)
Панель управления - Программы - Включение или отключение компонентов WindowsСлужбы печати и документов (можно установить все, но необходима только Служба печати LPD)LPD, который слушает на 515 портуLPD позволяет печатать по сети на все локально установленные принтерыМонитор LPR портов, но можно поставить все дополнительные компоненты печати Создать порт, тип порта - LPR портSamsung ML-2160)Такое происходит при сетевой печати по протоколу RAW 5) (обычно на TCP порт 9100), если на принтере отключен SNMP. Решений два: включить SNMP на принтере, или не использовать SNMP на клиенте.
Принтер, подключенный по HTTP нельзя переименовать через GUI, поэтому для ОС до Windows 7:
cscript prncnfg.vbs -x -p "\\http://192.168.0.21:631\scx4100" -z "scx4100 на 192.168.0.21"
Для Windows 7 и далее можно через реестр: 6)
regedit от имени администратораHKLM\SYSTEM\CurrentControlSet\Control\Print\Printers,,http://server:631/printers/printer и заменить значение строкового параметра Name на нормальное имяnet stop spooler, затем запустить net start spooler службу бечати Well I faced the same problem. But thanks to the steps (Migper, Umca and paulEdangerous) things are sorted out. Thanks a lot guys. But I would like to outline the steps I took in an absolutely non technical fashion for more people like me. this is what i did : 1. Downloaded the following driver You know you have the right file because if you go to Canon’s website link here: http://www.usa.canon.com/consumer/controller?act=ModelInfoAct&tabact=DownloadDetailTabAct&fcategoryid=335&modelid=11148 Select Windows 7 (x64) in the drop down And download these drivers: MF5730_5750_MFDrivers_Win_x64_us_EN_7.exe 2. Unzipped them in the Downloads section. 3. Made these modifications as suggested by you guys : a. Filename : MF5700AU - Filetype Setup Information 3 KB [Canon.NTamd64] "Canon MF5700 Series" = MF5700,USBPRINTCanonMF5730c609,CanonMF5730c609,"MF5730" "Canon MF5700 Series" = MF5700,USBPRINTCanonMF5750660a,CanonMF5750660a,"MF5750" "Canon MF5700 Series" = MF5700,USBPRINTCanonMF5770060b,CanonMF5770060b,"MF5770" "Canon MF5700 Series" = MF5700,USBPRINTCanonMF31102FE8,CanonMF31102FE8,"MF5770" b. Filename : MF12SCN - Filetype Setup Information 21 KB [Models.NTamd64.5.1] %LPTENUMMF5730.DeviceDesc%=MF5730Install_XP,USBVID_04A9&PID_265D&MI_00 %LPTENUMMF5750.DeviceDesc%=MF5750Install_XP,USBVID_04A9&PID_265E&MI_00 %LPTENUMMF5770.DeviceDesc%=MF5770Install_XP,USBVID_04A9&PID_265F&MI_00 %LPTENUMMF5770.DeviceDesc%=MF5770Install_XP,USBVID_04A9&PID_2660&MI_00 4. Saved these text files at their locations. 5. Plugged in the USB cable of my printer. When it did not install it properly went to the properties section. Clicked on settings and then driver update. Specified the location of the drivers mentioned above. And let windows do the rest. It did say that the drivers are not digitally signed but I went on nevertheless. 6. This installed the scanner. 7. For the printer I installed the printer driver from the same location as a new printer first and on Virtual USB port 1 as my laptop does not have an LPT or COM port. 8. Then made it the default printer and it worked. Hope it helps. Thanks a lot guys.
Вывести список принтеров с параметрами подключения:
wmic printer get name,portname,drivername,serverName,shareName,local,network,default /format:list
Пример вывода:
Name=Microsoft Print to PDF PortName=PORTPROMPT: DriverName=Microsoft Print To PDF Port Monitor Local=True Network=False Default=True Name=HP LaserJet Pro M404 PortName=USB001 DriverName=HP LaserJet Pro M404 PCL6 Local=True Network=False
Экспортировать список принтеров в файл:
wmic /output:"C:\printers_with_drivers.csv" printer get name,portname,drivername,servername,sharename,local,network /format:csv