Menu
- Where Does Windows 10 Store Printer Drivers
- Install Printer Driver Command Line Windows 10
- Install Printer From Command Line
Learning has never been so easy!
Adding a network printer from the command line (or bat file) @Echo Off REM Change COMPUTER PRINTER by your printer's UNC REM Add printer rundll32 printui.d. How can the answer be improved?
Adding a network printer from the command line (or bat file)
@Echo Off
REM Change COMPUTERPRINTER by your printer's UNC
@Echo Off
REM Change COMPUTERPRINTER by your printer's UNC
Installing a Network Printer via Command Line. Recently I had to install a printer on a lot of workstations in a short amount of time. Server data test drivers 32. Windows 2000 and Windows Server 2003 provide the ability to install a printer using a command line. This is particularly useful when you add or remove a printer from a group of users using a login script or a scheduled event. Learn how to add a printer from a Microsoft Windows command line. Intel| Mips| PowerPC /ia install printer driver using inf file /id install printer driver.
Where Does Windows 10 Store Printer Drivers
REM Add printer
rundll32 printui.dll,PrintUIEntry /in /nCOMPUTERPRINTER
rundll32 printui.dll,PrintUIEntry /in /nCOMPUTERPRINTER
![Install Printer Driver Command Line Install Printer Driver Command Line](/uploads/1/2/6/1/126130250/458263385.jpg)
![Install Printer Driver Command Line Install Printer Driver Command Line](/uploads/1/2/6/1/126130250/602348591.png)
REM Set printer as default
rundll32 printui.dll,PrintUIEntry /y /nCOMPUTERPRINTER
rundll32 printui.dll,PrintUIEntry /y /nCOMPUTERPRINTER
Work on:
Windows Server 2008 R2
Windows Server 2008
Windows Server 2003
Windows 7
Windows Vista
Windows XP
Windows 2000
Windows Server 2008 R2
Windows Server 2008
Windows Server 2003
Windows 7
Windows Vista
Windows XP
Windows 2000
Using VBS script
Set WshNetwork = CreateObject('WScript.Network')
WshNetwork.AddWindowsPrinterConnection 'PrintServCanon'
WshNetwork.SetDefaultPrinter 'PrintServCanon'
Set WshNetwork = CreateObject('WScript.Network')
WshNetwork.AddWindowsPrinterConnection 'PrintServCanon'
WshNetwork.SetDefaultPrinter 'PrintServCanon'
Install Printer Driver Command Line Windows 10
11 Comments
Install Printer From Command Line
- Macehsc5775 Dec 13, 2012 at 03:09pmthx for share the script
- DatilMerryworks Dec 13, 2012 at 03:13pmInteresting script.
- Ghost ChiliNick42 Dec 17, 2012 at 09:39pmWill have to give this a try.
- TabascoTom2338 Nov 17, 2013 at 08:04pmThis is really just adding a shared printer. When I think 'network' printer, I think IP, not shared. A shared printer is basically a 'print server' (yes, even a desktop pc can be a print server).
- Anaheimjwilliams85 Sep 29, 2014 at 03:46pmThis worked great, thank you very much. I can drop this on a shared drive and run it from each computer for seamless adding of printers.
- Pimientobrockjantke Feb 16, 2015 at 11:03pmhow would we go having this vbscript prompt for a domain username and password
- PimientoDavid1126 Aug 1, 2016 at 05:01pmThanks for this! Made a project I am working on a lot simpler
- Pimientotreyh2 Mar 8, 2017 at 10:12pmMy server is protected by network credentials; is there anyway this will interfere with the access?
- Pimientopetervanborg May 3, 2018 at 11:36pmLife saver! I needed a process to backup files/printers on old PC's to be moved to a new PC. The backup screens for networked only printers.
Backup
SETLOCAL ENABLEDELAYEDEXPANSION
for /f 'tokens=2 delims' %%a in ('wmic printer get name /value') do (
set printer=%%a
if defined printer (
if '!printer:~0,2!'' (
echo !printer! >> 'U:move_backupprinters.txt'
)
)
)Restore
IF EXIST U:move_backupprinters.txt (
ECHO Installing Printers
for /f 'delims=' %%i in (U:move_backupprinters.txt) do (
echo added printer %%i
rundll32 printui.dll,PrintUIEntry /in /n%%i
)
) - PimientoTrithum1364 May 22, 2018 at 09:39am@Echo Off
REM Change COMPUTERPRINTER by your printer's UNCREM Add printer
rundll32 printui.dll,PrintUIEntry /in /nengn-pc05EPSON L360 SeriesREM Set printer as default
rundll32 printui.dll,PrintUIEntry /y /nengn-pc05EPSON L360 Series--------------
input null ????
EPSON L360 Serieshelp .,pl - PimientoKARTHIK6135 Aug 28, 2018 at 10:30amHow to run the command to a remote computer, As it can be added for very user / particular user in remote computer.