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.