Thank you for your feedback

Video: Printer Driver Installation Using a Script in Windows 10

Document ID:HO3977

Usergroup :External



This article provides a video for example purposes only. It is intended to familiarize users with script installation in Windows 10.

NOTE: Windows 10 drivers may not be immediately available. In the meantime, you may use Windows 8 or 8.1 driver packages for Windows 10 supported printers.


Installing printer driver using a script

The following sequence of procedures are summarized in the video below:

  1. Extract the files to a temporary folder.
  2. Accept the License Agreement.
  3. Remove the check mark next to "Launch the Add Printer Wizard after extraction completes".
  4. Locate LMUD1p40 Setup Information file (.inf) via File Explorer > This PC > Local Disk (C:)Lexmark > Lexmark_Universal_v2_UD1_XLDrivers > Print GDI NOTE: You will need both the path and setup .inf file name.
  5. Open a Command Prompt (Run as administrator).
  6. If the respective port name is not present then create a Port, either from Print Server Properties > Ports Tab or using Microsoft provided prnport.vbs script.
    Example: How to create a standard Tcp/Ip Port using prnport.vbs script
    cscript c:\Windows\System32\Printing_Admin_Scripts\en-US\prnport.vbs -a -r -h
  1. Type C:\Windows\system32>rundll32 printui.dll,PrintUIEntry /if /m "Lexmark Universal v2 XL" /f "C;\Lexmark\Lexmark_Universal_v2_UD1_XL\Drivers|Print\GDI\LMUD1p40.inf /r "<IP_Address>" /Z /q
    NOTE: The path and .inf Setup Information file value can vary depending on the driver you want to install (e.g., PCL5, PCL XL, or PS).
  2. Open Control Panel and select View devices and printers.
  3. Select Print server properties.
  4. Click on the Drivers tab.
  5. Observe Lexmark Universal v2 XL under Installed printer drivers.
  6. Select it and click OK.
  7. Verify successful installation by locating the driver with the label Lexmark Universal v2 XL, for example.



If unable to view the video above, see the video below. You may need to wait for the video to load since the file size is approximately ~6MB.




Please enter the email address you would like to send a copy of this page to.