Notification

Icon
Error

Print Management - ability to use Print Management or something similar

Posted: Thursday, May 21, 2020 11:38:36 PM(UTC)
mzipperer

mzipperer

Member Original PosterPosts: 16
0
Like
Im looking for the ability to remotly manage printers including install and uninstall.
CyberCitizen
#1CyberCitizen Member Posts: 359  
posted: 5/22/2020 1:35:27 AM(UTC)
Are you talking print servers or wanting to install printers on machines remotely.

In our main office buildings we have a print server, however we are a construction company and have a lot of smaller sites that don't have a printer server so in those cases we deploy the print drivers and print queue to the machines on those sites. You do have to package it up as a deployment though. Which means you need to export the print drivers, sometimes certificates and install the printers. Below is an example of one of our sites which has 3x machines so instead of a separate print package they were bundled together for this site.

So first step I do is attempt to uninstall the printer that I am installing the reason for that is Lansweeper will sometimes double install printers and you end up with Printer, Printer (1), Printer (2), etc. This just prevent the duplicate print queue names.

Next step is to import the printers certificate, otherwise it won't install via command line as Windows will throw up a do you want to install this print driver message requiring admin rights to install.

Next we create the IP port that the printer will be using.

We then install the print drivers and set the printer name & create the queue.

Finally we apply custom print settings eg A4 Single B&W vs A4 Double Sided and Colour.

To set these defaults install the printer on your machine, set the printer defaults then export the defaults using this command line string.

Code:
rundll32 printui.dll,PrintUIEntry /Ss /n "SITE.NAME (SC2020)" /a "\\SERVERNAME\Apps$\Printer Drivers\Multi Printer Sites\Printer Settings (Defaults)\SITE.NAME (SC2020).Settings.dat"


It does look like a bit of work, but once you have a template setup it doesn't take that long and for us it works really well as we have something like 30 projects sites on the go and each project site will have something like 20-40 staff float through, so instead of having to manually install the printers on each users machine (which is what the old IT used to do) or use a print server via VPN back to the head office (massive network strain and print delays), this works well.

Code:
:Uninstall Existing Printers / Names
rundll32 printui.dll,PrintUIEntry /q /dl /n "SITE.NAME (SC2020)"
rundll32 printui.dll,PrintUIEntry /q /dl /n "SITE.NAME (Ineo 368) MFD1"
rundll32 printui.dll,PrintUIEntry /q /dl /n "SITE.NAME (Ineo 368) MFD2"


:Import FujiXerox Certificate
certutil -addstore "TrustedPublisher" "\\SERVERNAME\Apps$\Printer Drivers\FujiXerox.cer"
certutil -addstore "TrustedPublisher" "\\SERVERNAME\Apps$\Printer Drivers\KonicaMinolta.cer"


:Create TCP/IP Ports - SITE.NAME (SC2020)
CSCRIPT /nologo %windir%\System32\Printing_Admin_Scripts\en-US\prnport.vbs -a -r 10.40.11.10 -o raw -n 9100 -h 10.40.11.10
:Create TCP/IP Ports - SITE.NAME (Ineo 368) MFD1
CSCRIPT /nologo %windir%\System32\Printing_Admin_Scripts\en-US\prnport.vbs -a -r 10.40.11.11 -o raw -n 9100 -h 10.40.11.11
:Create TCP/IP Ports - SITE.NAME (Ineo 368) MFD2
CSCRIPT /nologo %windir%\System32\Printing_Admin_Scripts\en-US\prnport.vbs -a -r 10.40.11.12 -o raw -n 9100 -h 10.40.11.12


:Install Printer - SITE.NAME (SC2020)
rundll32 printui.dll,PrintUIEntry /q /if /n "SITE.NAME (SC2020)" /b "SITE.NAME (SC2020)" /f "\\SERVERNAME\Apps$\Printer Drivers\Fuji Xerox SC2020\XR6IKAL.inf" /r "10.40.11.10" /m "Xerox DocuCentre SC2020 PCL 6"
:Install Printer - SITE.NAME (Ineo 368) MFD1
rundll32 printui.dll,PrintUIEntry /q /if /n "SITE.NAME (Ineo 368) MFD1" /b "SITE.NAME (Ineo 368) MFD1" /f "\\SERVERNAME\Apps$\Printer Drivers\Multi Printer Sites\Konica BizHub C368\KOAXPJ__.INF" /r "10.40.11.11" /m "KONICA MINOLTA C368SeriesPCL"
:Install Printer - SITE.NAME (Ineo 368) MFD2
rundll32 printui.dll,PrintUIEntry /q /if /n "SITE.NAME (Ineo 368) MFD2" /b "SITE.NAME (Ineo 368) MFD2" /f "\\SERVERNAME\Apps$\Printer Drivers\Multi Printer Sites\Konica BizHub C368\KOAXPJ__.INF" /r "10.40.11.12" /m "KONICA MINOLTA C368SeriesPCL"


:Install Printer Configuration Settings
rundll32 printui.dll,PrintUIEntry /Sr /n "SITE.NAME (SC2020)" /a "\\SERVERNAME\Apps$\Printer Drivers\Multi Printer Sites\Printer Settings (Defaults)\SITE.NAME (SC2020).Settings.dat" d g r
rundll32 printui.dll,PrintUIEntry /Sr /n "SITE.NAME (Ineo 368) MFD1" /a "\\SERVERNAME\Apps$\Printer Drivers\Multi Printer Sites\Printer Settings (Defaults)\SITE.NAME (Ineo 368) MFD1.Settings.dat" d g r
rundll32 printui.dll,PrintUIEntry /Sr /n "SITE.NAME (Ineo 368) MFD2" /a "\\SERVERNAME\Apps$\Printer Drivers\Multi Printer Sites\Printer Settings (Defaults)\SITE.NAME (Ineo 368) MFD2.Settings.dat" d g r
mzipperer
#2mzipperer Member Original PosterPosts: 16  
posted: 5/26/2020 3:29:20 PM(UTC)
Thank you for the reply but I was mainly trying to get the Print Management tool to run through Lansweeper like the Services tool dose so I can use that instead of telling my techs to use that locally and have them go through the process of connecting to that computer though Print Management.

Active Discussions

Lansweeper Unable to send to External Email
by  pryan67   Go to last post Go to first unread
Last post: Yesterday at 8:21:01 PM(UTC)
Lansweeper Lansweeper assets not being Scanned
by  Jordan  
Go to last post Go to first unread
Last post: Yesterday at 6:42:22 PM(UTC)
Lansweeper Database size growing too large
by  bladd   Go to last post Go to first unread
Last post: Yesterday at 4:26:44 PM(UTC)
Lansweeper Searching Specific File
by  mzipperer  
Go to last post Go to first unread
Last post: Yesterday at 4:23:29 PM(UTC)
Lansweeper Exchange 2010 information is not populating
by  Moe   Go to last post Go to first unread
Last post: Yesterday at 12:30:38 PM(UTC)
Lansweeper Routinely Exploited Vulnerabilities Query Report
by  pryan67  
Go to last post Go to first unread
Last post: Yesterday at 12:25:31 PM(UTC)
Lansweeper Creating a report for new devices every 2 hours to alert
by  Moe   Go to last post Go to first unread
Last post: 6/4/2020 7:26:11 PM(UTC)
Lansweeper Changes in the licensing model
by  BullGates  
Go to last post Go to first unread
Last post: 6/4/2020 6:27:23 PM(UTC)