none
Add-PrinterDriver shows driver not in driver store even when it is in there. RRS feed

  • Question

  • I've searched numerous threads but have not found a solution yet, so here goes.

    I want to create a printer script that can be installed remotely.

    Get-ChildItem$deployment-Filter*.inf-Recurse|%{pnputil.exe/a$_.FullName}

    Get-PrinterDriver   

    Add-PrinterDriver-ComputerName$computerName-Name$model-verbose   

    Add-PrinterPort-ComputerName$computerName-Name$printerHost-PrinterHostAddress$printerIP-verbose   

    Add-Printer-ComputerName$computerName-PortName$printerHost-Name$printerHost-DriverName$model-verbose

    It is safe to assume that $deployment has the .inf file that is needed, $computerName is correct and accessible.

    The name of $model is "Xerox Global Print Driver PS"

    Processing inf :            x3UNIVP.inf

    Driver package added successfully.

    Published name :            oem53.inf

     

    Total attempted:              1

    Number successfully imported: 1

     

    Name                                PrinterEnvironment MajorVersion    Manufacturer            

    ----                                ------------------ ------------    ------------            

    Send to Microsoft OneNote 16 Driver Windows x64        4               Microsoft               

    Microsoft XPS Document Writer v4    Windows x64        4               Microsoft               

    Microsoft Print To PDF              Windows x64        4               Microsoft               

    Xerox Global Print Driver PS        Windows x64        3               Xerox                   

    Microsoft Shared Fax Driver         Windows x64        3               Microsoft               

    Microsoft enhanced Point and Pri... Windows x64        3               Microsoft               

    Amyuni Document Converter 500       Windows x64        3               AMYUNI Technologies     

    Microsoft enhanced Point and Pri... Windows NT x86     3               Microsoft               

    VERBOSE: Adding new driver Xerox Global Print Driver PS

    Add-PrinterDriver : The specified driver does not exist in the driver store.

    At \\c204196\alans$\Printer scripts\Printer Dropdown Script\Printer Installation.ps1:71 char:5

    +     Add-PrinterDriver -ComputerName $computerName -Name $model -verbo ...

    +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

        + CategoryInfo          : NotSpecified: (MSFT_PrinterDriver:ROOT/StandardCimv2/MSFT_PrinterDriver) [Add-PrinterDriver], CimException

        + FullyQualifiedErrorId : HRESULT 0x80070705,Add-PrinterDriver

    I am still getting the error message that it does not exist in the driver store.

    Help is greatly appreciated.

    This script has worked many times but seems to fail on newly installed PCs.

    Thanks!!


    • Edited by Toothless LL Friday, September 27, 2019 12:41 AM
    Friday, September 27, 2019 12:39 AM

All replies

  • Friday, September 27, 2019 1:09 AM
  • Printer drivers must be installed from the vendors installer file before they can be added.

    In Windows domains this is unnecessary because spooled printers automatically install th driver from the spooler when the printer is attached.

    Add-PrinterDriver is for use in workgroups with directly attached pronters.


    \_(ツ)_/

    Friday, September 27, 2019 1:12 AM