Adding new printer on the print server and pushing it to all the users on login RRS feed

  • Question

  • Hi Everyone,

    I'm add basically just replacing the old printer with a new one. I've installed the new printer on the print server, drivers and port configured too.

    \\Printer server\Printer name

    \\vpsrv\Xerox AltaLink C8055

    I've deleted the old printer from the print server.

    Now I'm just trying to deploy the new printer to the users on the network but i get the below error:

    PS E:\Scripts> E:\Scripts\Printers.ps1
    add-printer : An error occurred while performing the specified operation.  See the error details for more information.
    At E:\Scripts\Printers.ps1:96 char:10
    +         {add-printer -connectionname $VPPrinter1}
    +          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (MSFT_Printer:ROOT/StandardCimv2/MSFT_Printer) [Add-Printer], CimException
        + FullyQualifiedErrorId : HRESULT 0x8007007b,Add-Printer

    There is no printer called "\\vpsrv\Xerox AltaLink C8055".
    At E:\Scripts\Printers.ps1:97 char:5
    +     (New-Object -ComObject WScript.Network).SetDefaultPrinter($VPPrin ...
    +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : OperationStopped: (:) [], COMException
        + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException

    If someone can help, I'd appreciate that.

    • Moved by Bill_Stewart Wednesday, December 12, 2018 6:35 PM This is not "research things for me" forum
    Thursday, August 23, 2018 5:20 PM

All replies

  • How are you trying to "push" a printer?

    Just add the printer in a GPO.  GP will add  the connection to the users.  No need for a script.


    Thursday, August 23, 2018 5:27 PM