(We add the printer twice. Once defaulted to B&W, again to leave it Color)
Steps (See attached video)
- Open control panel
- Choose "View Devices And Printers"
- Click "Add a printer"
- Click "The printer that I want isn't listed"
- Click "Add a printer using a TCP/IP address or hostname"
- Enter hostname or IP address: 10.91.8.190
- Hit Next
Name printer: "Talman B&W - HP LaserJet Enterprise 700 color MFP M775 PCL6 Class Driver" or similar
- If prompted - do NOT share
To make the printer B&W (See attached video)
- Recommended: Name the printer Talman B&W -
- Right click on printer
- Choose printer properties
- Click on the "Advanced" tab
- Click on "Printing Defaults"
- Click on "Paper Quality"
- Check the box for "Black & White"
- Hit "OK"
- Hit "OK"
Notes:
Talman B&W - HP LaserJet Enterprise 700 color MFP M775 PCL6 Class Driver
Talman Color - HP LaserJet Enterprise 700 color MFP M775 PCL6 Class Driver
#Never got this to work - see other sheet for tested working edition
Script:
Cscript
c:\windows\System32\Printing_Admin_Scripts\en-US\
prnport.vbs -a -r IP_10.91.8.190 -h 10.91.8.190 -p "Talman - HP LaserJet Enterprise color MFP M775"
c:\windows\System32\Printing_Admin_Scripts\en-US
Reference: Windows\System32\Printing_Admin_Scripts\en-US
# =========================================
#
echo --- TalmanHP Color LaserJet Flow E87640 ---
#
# =========================================
# Printing is one of the more difficult things to automated
# Reference: http://dennisspan.com/printer-drivers-installation-and-troubleshooting-guide/#UnattendedDriverInstall
# Reference: https://www.exemsi.com/
# Reference: Using intune - https://gallery.technet.microsoft.com/Deploy-Printer-via-d557b5ad
# The driver HP LaserJet Enterprise 700 color MFP M775 PCL6 Class Driver comes with - you need to install
# This driver has had problems
# RUNDLL32 PRINTUI.DLL,PrintUIEntry /dd /m "HP Universal Printing PCL 6 (v6.6.0)"
# install /q /h
#Start-Process "$env:USERPROFILE\Box\Talman Shared Folder\ZZZ_Tech DO NOT OPEN THIS IS FOR IT ONLY!!!!!!\HP-UPD-pcl6-x64-6.6.0.23029\install.exe" -ArgumentList "/q /h" -Wait -NoNewWindow;
# Check if the printer is there
Get-Printer -Name 'Talman B&W - HP E87640 - UPD 6.6'
# https://ftp.hp.com/pub/softlib/software13/COL40842/ds-99374-19/upd-pcl6-x64-6.6.0.23029.exe
$url = "http://ftp.hp.com/pub/softlib/software13/COL40842/ds-99374-19/upd-pcl6-x64-6.6.0.23029.exe";
$Installer = "HP-UPD6.6.zip";
$Path = $env:TEMP;
Invoke-WebRequest $url -OutFile $Path\$Installer;
$file = "$Path\$Installer";
$DataStamp = get-date -Format yyyyMMddTHHmmss;
New-Item -ItemType Directory -Force -Path C:\INSTALL;
$logFile = 'C:\INSTALL\{0}-{1}.log' -f $installer,$DataStamp;
$MSIArguments = @(
"/i"
('"{0}"' -f $file)
"/qn"
"/norestart"
"/l*v"
$logFile
);
#Start-Process "msiexec.exe" -ArgumentList $MSIArguments -Wait -NoNewWindow;
#Start-Process $file -ArgumentList "/q" -Wait -NoNewWindow;
Expand-Archive $file -DestinationPath 'C:\HP Universal Print Driver\pcl6-x64-6.6.0.23029'
type $logFile;
Remove-Item $file;
Remove-Item $logFile;
pnputil.exe -a "C:\HP Universal Print Driver\pcl6-x64-6.6.0.23029\hpcu215u.inf"
# can't hurt to run again I assume
pnputil.exe -a "C:\HP Universal Print Driver\pcl6-x64-6.6.0.23029\hpcu215u.inf"
#
# Need Box for the items below
#
# running a first time it will fail
#pnputil.exe -a "$env:USERPROFILE\Box\Talman Shared Folder\ZZZ_Tech DO NOT OPEN THIS IS FOR IT ONLY!!!!!!\HP-UPD-pcl6-x64-6.6.0.23029\hpcu215u.inf"
# running a second time seems to work (which I assume is tied to box?)
#pnputil.exe -a "$env:USERPROFILE\Box\Talman Shared Folder\ZZZ_Tech DO NOT OPEN THIS IS FOR IT ONLY!!!!!!\HP-UPD-pcl6-x64-6.6.0.23029\hpcu215u.inf"
# Since we've added the printer driver already from the prior not - not sure this is needed
Add-PrinterDriver -Name "HP Universal Printing PCL 6 (v6.6.0)"
add-printerport -name "IP_10.91.10.5" -printerhostaddress "10.91.10.5"
add-printer -name "Talman B&W - HP E87640 - UPD 6.6" -drivername "HP Universal Printing PCL 6 (v6.6.0)" -port "IP_10.91.10.5"
add-printerport -name "IP2_10.91.10.5" -printerhostaddress "10.91.10.5"
add-printer -name "Talman Color - HP E87640 - UPD 6.6" -drivername "HP Universal Printing PCL 6 (v6.6.0)" -port "IP2_10.91.10.5"
# Trying to find a way that allows me to set the printer defaults to B&W
# "Talman B&W - HP E87640 - UPD 6.6"
# Get-PrinterProperty "Talman B&W - HP E87640 - UPD 6.6" |fl |where-object PropertyName -like "*color*"
# This appears to be working ok -
Set-PrintConfiguration -PrinterName "Talman B&W - HP E87640 - UPD 6.6" -Color $false