Created
February 16, 2015 19:43
-
-
Save blakewrege/34e4f30def099991cf92 to your computer and use it in GitHub Desktop.
Scripts for Konica Printer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $PortName = "IP_141.218.90.17" | |
| $PortIP = "141.218.90.17" | |
| $DriverName = "KONICA MINOLTA C754SeriesPCL SP" | |
| $DriverLocation = "\c754_c754e_c654_c654e_pcl6_win64_v312ssd03_en_add\KOFYSJ1_.inf" | |
| ##Leave This code commented out unless you are removing old drivers with the same name | |
| #net stop spooler | |
| #net start spooler | |
| #rundll32 printui.dll PrintUIEntry /dl /q /n $DriverName | |
| #rundll32 printui.dll,PrintUIEntry /dd /m $DriverName | |
| cscript c:\Windows\System32\Printing_Admin_Scripts\en-US\prnport.vbs -d -r $PortName | |
| cscript c:\Windows\System32\Printing_Admin_Scripts\en-US\prnport.vbs -a -r $PortName -h $PortIP -o raw -n 9100 | |
| rundll32 printui.dll,PrintUIEntry /if /u /b $DriverName /f $DriverLocation /r $PortName /m $DriverName |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| osascript -e 'tell application "Finder" | |
| set myFolder to POSIX path of (parent of (path to me) as string) | |
| end tell | |
| set PrinterName to "Bizhub_C754e" | |
| set PackageName to "KonicaMAC.app/Contents/MacOS/bizhub_C754_107.pkg" | |
| set Location to "Wood_3700" | |
| set IPaddress to "lpd://141.218.90.17" | |
| set DriverPath to "/Library/Printers/PPDs/Contents/Resources/KONICAMINOLTAC754.gz" | |
| do shell script "installer -allowUntrusted -verboseR -pkg " & myFolder & PackageName & " -target / " with administrator privileges | |
| do shell script "lpadmin -p " & PrinterName & " -L " & Location & " -E -v " & IPaddress & " -P " & DriverPath & " -o printer-is-shared=false" ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment