drucker treiber

Antworten
tiberQ
Beiträge: 30
Registriert: 18 Mär 2019, 11:25

drucker treiber

Beitrag 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 ?
Benutzeravatar
SisterOfMercy
Beiträge: 1556
Registriert: 22 Jun 2012, 19:18

Re: drucker treiber

Beitrag 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?
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
tiberQ
Beiträge: 30
Registriert: 18 Mär 2019, 11:25

Re: drucker treiber > solved

Beitrag 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:
Benutzeravatar
SisterOfMercy
Beiträge: 1556
Registriert: 22 Jun 2012, 19:18

Re: drucker treiber > solved

Beitrag 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.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
tiberQ
Beiträge: 30
Registriert: 18 Mär 2019, 11:25

Re: drucker treiber

Beitrag 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:
Antworten