
In the left pane, navigate to Certificates – Local Computer > Trusted Publishers > Certificates where the recently installed cert should be listed: Then open Start > Manage Computer Certificates. If so, click the Install button and finish installing the printer. To know if you need a cert, install the printer in a test environment and see if a certificate prompt like the following is displayed:

But if one does, we will need to use a command to import the cert before installing the printer. Most printers won’t require a certificate. Let’s dive in… Import Certificateįirst thing’s first: certificates. I’ve found this method to execute correctly even as SYSTEM user, so it’s what I’m still using for my printer installs today. My latest method involves using PRINTUI.DLL with RUNDL元2.EXE which are also native Windows tools.
#HOW TO DOWNLOAD AND INSTALL WORDPRESS THROUGH COMMAND LINE HOW TO#
SYSTEM is fine for most executions, but some of the aforementioned visual basic scripts will not complete when ran as the SYSTEM user ( see post Run Command Prompt as NT AUTHORITY\SYSTEM to test SCCM Applications to learn how to test such things). When installing applications for the entire system (all users), SCCM will run installs as the Windows built-in SYSTEM user. My current issue with these is a result of my use of System Center Configuration Manager. I was previously a fan of the prndrvr.vbs, prnmngr.vbs, and prncnfg.vbs scripts that have existed natively in Windows for many years.

I’ve used several methods to accomplish this. Installing printers from Windows command line can be tricky, especially if you are attempting to keep things silent. Successfully Tested On: Windows 7 Enterprise SP1, Windows 10 Enterprise versions 1507 - 21H2, Windows 10 Long-Term Servicing Branch (LTSB) versions 1507 & 1607, Windows 10 Long-Term Servicing Channel (LTSC) versions 2015 - 2019
