Seite 1 von 1

drucker treiber

Verfasst: 29 Jun 2020, 15:29
von tiberQ
hallo opsi,

ich dachte ich nutze die zeit um unseren reudigen windows drucker-server bzw. printer driver diener mit opsi abzuloesen und hab folgendes in meiner test win10-en umgebung erfolgreich zum laufen gebracht:

Code: Alles auswählen

cscript c:\Windows\System32\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.0.31 -h 192.168.0.31
printui.exe /if /b "4.OG_Drucker_Kueche" /f C:\opsi.org\tmp\1.inf /u /r IP_192.168.0.31 /m "Canon Generic Plus PS3"
nur bei den echten de clients kommt folgende fehlermeldung:
https://pasteboard.co/JfkNRwM.png

ich dachte ok. und tasuchte
c:\Windows\System32\Printing_Admin_Scripts\en-US\prnport.vbs
zu
c:\Windows\System32\Printing_Admin_Scripts\de-DE\prnport.vbs

leider ohne erfolg - hat hier jemand eine idee ?

Re: drucker treiber

Verfasst: 29 Jun 2020, 16:27
von SisterOfMercy
First command seems to work, but the printui.exe not. Is the C:\opsi.org\tmp\1.inf available on every client and the rest of the drivers that go with this inf file?

Re: drucker treiber > solved

Verfasst: 29 Jun 2020, 18:12
von tiberQ
hi,

thanks for your reply- Finaly I was able to solve it, the path to the inf was def. correct but I forgot to put all other driver files into that location (cab, etc. files) this was the main issue. In the part time I also tried another way for this job-

Code: Alles auswählen

CSCRIPT /nologo %windir%\System32\Printing_Admin_Scripts\en-US\prnport.vbs -a -r %varIP% -o raw -n 9100 -h %varIP%
and

Code: Alles auswählen

rundll32 printui.dll,PrintUIEntry /if /n %varName% /b %varName% /f %varDriverFile% /r %varIP% /m %varDriver%
but this was unable to deal with cab files....pretty strange so I switched back to my first way which worked.....

Printers are evil :oops:

Re: drucker treiber > solved

Verfasst: 29 Jun 2020, 22:37
von SisterOfMercy
tiberQ hat geschrieben:

Code: Alles auswählen

rundll32 printui.dll,PrintUIEntry /if /n %varName% /b %varName% /f %varDriverFile% /r %varIP% /m %varDriver%
Aren't you missing quotes around the %varDriverFile%. Anyway, I still have to do my own print driver package.

Re: drucker treiber

Verfasst: 30 Jun 2020, 09:08
von tiberQ
For my second one this is my ref.
https://qtechbabble.wordpress.com/2018/ ... -printers/

Which works well except for one of my hp printer drivers and I expect it has something to do with the cab and cat files which does not work so I switched back to my first way to rock the bloody printer drivers....works & done :shock: