Navigation

Showing posts with label printing. Show all posts
Showing posts with label printing. Show all posts

8/14/2017

IP printing via Chrome OS

Want to setup IP printing to HP printer from student Chromebooks:



Step 1: Connect to Wi-Fi

  1. Turn on your printer.
  2. Connect your printer to a Wi-Fi network. If you need help, follow your printer manufacturer’s instructions.
  3. If you haven’t yet, turn on your Chromebook and sign in.
  4. Connect your Chromebook to the same Wi-Fi network as your printer. Learn how to connect to Wi-Fi.

Step 2: Add your printer to your Chromebook

Important: You’ll need to know your printer’s IP address, protocol, and queue. To find them, check your printer’s display panel, manual, device specs, or help website.
  1. Click your account photo.
  2. Click Settings Settings.
  3. At the bottom, click Advanced.
  4. In the "Printing" section, click Printers.
  5. Click Add Printer.
  6. Enter your printer information:
    • Name: Type any name.
    • Address: Type your printer’s IP address.
    • Protocol: For most printers, the supported connection protocol is IPP.
    • Queue: For most printers, the queue is ipp/print.
  7. Click Add.
  8. In the box that appears, choose your printer manufacturer and model.
    • To find this info, look at the label on your printer.
    • If you don’t see your printer in the list, check your printer info for its "printer language" or "emulation." Then choose the "Generic" option that looks similar.
    • If you have your printer driver, click Browse to upload it. The file must be 250 kb or smaller.
  9. Click Add.

From Google

7/26/2017

Double Coversheets Windows Print queue

We had coversheet turned on, when upgraded to Windows 10, got 2 coversheets, need to modify .SEP file on printserver: (from)

It has been a long time since I have posted but came across an issue I wanted to put out there.  I have been working on deploying Windows 8.1 at a client.  They print to printers shared from a Server 2012 virtual machine and the printer on the server has a the default windows PCL separator page file in use (C:\Windows\System32\PCL.sep).  When Windows 8 machines print to this share, the job would generate two separator pages before printing the actual file but Windows 7 machines would only generate one separator like it is supposed to.  I found a post online about it but it did not have a resolution.  In my own testing, I found that the two separator pages would show different Job Ids so I took the text of the default separator file (pcl.sep), removed "\U\LJob : \I" and saved under a new file since I could not edit the original (new file.sep or whatever you want to call it).  I pointed the server's instance of the printer to use this new file and now clients connected to this printer print one separator instead of two.

The text of the PCL.sep file:

\
\H1B\L%-12345X@PJL ENTER LANGUAGE=PCL
\H1B\L&l1T\0
\U\LUsername: \J\L\\\N
\B\S\J\U
\B\S\N\U
\0
\U\LJob : \I
\U\LDate: \D
\U\LTime: \T
\E

The text of my file fixed for Windows 8 usage:

\
\H1B\L%-12345X@PJL ENTER LANGUAGE=PCL
\H1B\L&l1T\0
\U\LUsername: \J\L\\\N
\B\S\J\U
\B\S\N\U
\0
\U\LDate: \D
\U\LTime: \T
\E

6/07/2017

IP printing script - Windows





Want to run BAT file to install IP printer on laptop:


CLS
@ECHO off

SET varIP=192.168.0.200
SET varDriver=HP Color LaserJet CP2020 Series PCL 6
SET varDriverFolder=\\Server\\Software\\Hardware\\Drivers\\Printers\\HP CP2025DN\\
SET varDriverFile=\\Server\\Software\\Hardware\\Drivers\\Printers\\HP CP2025DN\\hppcp610.inf
SET varName=Reception
SET varLocation=Reception

REM "Deleting TCP/IP port"
REM CSCRIPT /nologo %windir%\system32\prnport.vbs -d -r IP_%varIP%

REM "Creating TCP/IP port"
CSCRIPT /nologo %windir%\system32\prnport.vbs -a -r IP_%varIP% -o raw -n 9100 -h %varIP%

CLS
REM "Installation message"
@ECHO.
@ECHO The %varLocation% printer is currently being installed.
@ECHO.
@ECHO Please do not close this window.
@ECHO.
@ECHO Once the installation is complete this Setup window will exit.
@ECHO.

REM "Driver installation"
CSCRIPT /nologo %windir%\system32\prndrvr.vbs -a -m "%varDriver%" -h "%varDriverFolder%" -i "%varDriverFile%"  
CLS

REM "Printer deletion"
@ECHO.
@ECHO Completing installation.
CSCRIPT /nologo %windir%\system32\prnmngr.vbs -d -p "%varName%" 
CLS

REM "Printer installation"
@ECHO.
@ECHO Completing installation.
CSCRIPT /nologo %windir%\system32\prnmngr.vbs -a -p "%varName%" -m "%varDriver%" -r "IP_%varIP%"
CLS

REM "Location configuration"
@ECHO.
@ECHO Completing installation.
CSCRIPT /nologo %windir%\system32\prncnfg.vbs -t -p "%varName%" -l "%varLocation%"
CLS
 
 
 
 
https://community.spiceworks.com/ 

8/10/2016

Google cloud print on Windows server

Want to set up classic printer on Windows cloud print service:




  1. Using Chrome, download and install Google Cloud Print Service for Windows.
  2. From your Start menu, open Google Cloud Print Service and run it.
  3. Enter your Windows administrator username and password.
  4. Click Register.
  5. In the Chrome window that opens, sign in to your Google Apps account.
  6. Click Add Printers and leave the browser open. The config utility will close it automatically. (You can close the popup if it's still open.) The "State:" field should switch to "Running".
  7. Verify that the expected printers are available in the management page.






https://support.google.com/a/answer/3179170?hl=en

7/26/2016

set default printer via command line

Via vb script you can install and set default printer. 
Need to place the script in the startup directory, so that it will get run for every user:


'Put this in   C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\ 

Set WshNetwork = CreateObject ("WScript.Network")
WshNetwork.AddwindowsPrinterConnection "\\testsrva\print_queue_name"
WshNetwork.SetDefaultPrinter "\\testsrva\print_queue_name"

'  Wscript.Echo "end"
'  end of script




Looked at "ntprint /setdefault name=<printer name>"  but was not as reliable




From eHow

7/31/2015

script to install print queues



rundll32 printui.dll,PrintUIEntry /u /in /n \\ntsrva\LAW228_HP




http://blogs.technet.com/b/askperf/archive/2011/09/16/print-queue-scripting.aspx

7/14/2015

Installing windows print queue on laptop

To install printers on student laptops (not on domain) the START command works best:


echo Starting printer install....
start \\printers.cua.edu\LAW150_HP4000



This will just like manual install, and will generate Windows Security popup, student must put in user name preceded by domain, and then password:

DOMAIN\userName


This will save name/password in Credentials Manager.



To install via Visual basic, computer must be on the domain:



Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\printers.cua.edu\LAW400_HP9000"



11/19/2014

Using lpadmin command on Yosemite OS

I had Applescript with LPADMIN command that worked with Apple OS, but stopped working on Yosemite (10.10).  Did not get any error, the printer always was in paused state.


 From macenterprise on Google Groups:

I'm seeing some strange cases at the university where certain users are unable to print authenticated via smb when on Yosemite.

I had just about weaned our users off of unauthenticated lpd when printing to our Windows print server in favor of smb with their credentials stored pr. printer in the keychain.

There doesn't seem to be a pattern to who it affects but there are indications that it's sandbox related (cryptic log messages and the like)

Putting the "Sandboxing relaxed" directive in /etc/cups/cups-files.conf seems to fix it for some.

Has anyone else seen problems when printing to smb printers on Yosemite?

Regards,

Simon Andersen
Aarhus University, Denmark

REPLY:



Tony Skalski

Oct 29
Other recipients: MACENT...@lists.psu.edu
We added "-o auth-info-required=negotiate" to our lpadmin command in the
install script we package up for students to use. This seems to have fixed
the Yosemite printing issues we've seen.

ajs
Tony Skalski
Systems Administrator
St. Olaf College
Information Technology
1510 St. Olaf Avenue


-----------------------------------------------------

Poster in Stackoverflow suggested a fix was to add  -E  to enable at the very end, this did NOT work for me.

do shell script "/usr/sbin/lpadmin  -L '3rd-floor-library'   -o printer-is-shared=false -o Duplex=DuplexTumble -o Option1=True -p  '3rd-floor-library' -v smb://server1.cua.edu/LAW_HP9050 -P   " & quoted form of (POSIX path of myFile) as text & "  -E"

Previously I did not need the -E switch.   Adding printer via Printers and Scanners UI works fine under Yosemite, just adding it via lpadmin broke under Yosemite.

From Apple:
-E            Enables the destination and accepts jobs;


From Stackoverflow

8/19/2014

Applescript: lpadmin command to set duplexing

Wanted to use LPADMIN command to turn on duplexing when I installed printers, I am using Generic PCL printer driver, version 1.3


First use this command to get options:
lpoptions -p printer_name -l
 
This returned:
 
PageSize/Media Size: *Letter Legal Executive Tabloid A3 A4 A5 B5 EnvISOB5 Env10 EnvC5 EnvDL EnvMonarch
Resolution/Resolution: *300dpi 600dpi
InputSlot/Media Source: *Default Tray1 Tray2 Tray3 Tray4 Manual Envelope
Duplex/2-Sided Printing: *None DuplexNoTumble DuplexTumble
Option1/Duplexer: *False True
 
 
So need to add this to lpadmin commandline:
-o Duplex=DuplexTumble -o Option1=True 
 
Full statement is:
do shell script "/usr/sbin/lpadmin  -L 2nd-floor-library    
 -o printer-is-shared=false  -o Duplex=DuplexTumble -o Option1=True 
 -p  '2nd-floor-library' -v smb://testserver.someplace.edu/LAW228_HP600 -P   
 " & quoted form of (POSIX path of myFile) as text & "  " 
 


This does not make double sided printing the default, rather it makes sure the option is not grayed out, and that 2 sided printing can be selected.

6/10/2014

Applescript: installing windows print queue


Looking to install windows print queue on Apple OS via Apple script

This is path, with the username/password embedded
smb://domain\\\\userName:Password@server.address.edu/queueName

do shell script "/usr/sbin/lpadmin -p  3rd-floor -v smb://CUA\\\\" & userName & ":" & ThePassword & "@server.address.edu/queueName -P   " & quoted form of (POSIX path of driver3) as text & "  -D \"3rd-Floor-Library\""

do shell script "sudo /usr/sbin/accept 3rd-floor" with administrator privileges
   This sets correct access or right for the printer.


I embedded username/password because I found issues trying to use Applescript to create entries in Keychain.


lpadmin switches


 -L "location"
            Provides a textual location of the destination.

 -P ppd-file
            Specifies  a  PostScript  Printer  Description  file to use 
            with the printer. If specified, this
            option overrides the -i option (interface script). 
 
 -v "device-uri"
            Sets the device-uri attribute of the printer queue. 
            Use the -v option with the lpinfo(8) command
            to get a list of supported device URIs and schemes.

 -D "info"
            Provides a textual description of the destination. 

8/22/2013

Apple print error nothing happens when press Print button

User with Apple laptop, clicked print button, nothing happens, do following steps, then reboot.



This can usually be fixed by going into the Terminal utility and there enter the command to operate on the CUPS printer name:

sudo lpadmin -p <PrinterName> -o auth-info-required=username,password

This will update the printer stanza in /etc/cups/printers.conf, and then the printing works.

8/21/2013

Apple OS printing error: NT_STATUS_BAD_NETWORK_NAME

Got the following printer error:  NT_STATUS_BAD_NETWORK_NAME

When trying to print to a Windows Print Queue from Apple laptop.

Solution:  Go into network settings and delete DNS entries.  Person had fixed DNS entry, when removed it,  grabbed local DNS and error went away.


Could also fix by using IP address for queue name, and not domain name:
smb://<username>:<password>@<ip-address-printer>/<sharename>



4/16/2013

Print file and directory names - Windows 7

From:
http://support.microsoft.com/kb/321379

This has link to open FIX IT wizard to add Print Directory Feature.





From:
http://smallbusiness.chron.com/copy-list-files-windows-folder-excel-list-40032.html

Step 1

Press "Win-E" to open Windows Explorer and locate the folder for which you need a file list.

Step 2

Hold the "Shift" key, right-click the folder and select "Open Command Window Here." This only works with folders, not libraries. Libraries point to a specific folder, so select the folder located under the library icon. If the library points to a drive, right-click the drive letter from the folder tree.

Step 3

Type "dir /b > dirlist.txt" without quotes and press "Enter." This creates a list containing file names only. To include file sizes and dates, type "dir > dirlist.txt" instead. To also include files in sub-directories, type "dir /b /s > dirlist.txt" to create a list of files with the full directory structure name, such as "C:\folder\subdirectory\file.txt."

Step 4

Open Microsoft Excel and press "Ctrl-O" to bring up the Open dialog window.

Step 5

Navigate into the folder containing the files. Click the file type drop-down menu and select "Text Files (*.prn,*.txt,*.cvs)." Double-click "dirlist.txt" to open it.

Step 6

Click "Finish" in the Text Import Wizard window to use the default options and import the directory list into Excel.