Install WSD Printer

by allison at 2013-03-19 13:24:34

How do I create a WSD port using Powershell in Win8. I tried using the Add-Printer cmdlet with -DeviceURL parameter but I get the following error:
Add-Printer : An error occurred while performing the specified operation. See the error details for more information.
At line:1 char:1
+ Add-Printer -Name ‘Test WSD Printer’ -DeviceURL ‘ipaddress’
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (MSFT_Printer:ROOT/StandardCimv2/MSFT_Printer) [Add-Printer], CimException
+ FullyQualifiedErrorId : HRESULT 0x8007200f,Add-Printer

Not sure if the failure is cause the port does not already exist.
by DonJ at 2013-03-23 09:36:58
Unfortunately the underlying WMI provider isn’t giving any details on what failed.

As I look at the docs for the command (http://technet.microsoft.com/en-us/libr … 18353.aspx), you’re definitely using the WSD parameter set (the third one in the docs). A port isn’t required - but it’s possible the WSD discovery process failed, and that’s generating the error. That’d be in the printer’s side of things, not the client computer.

Can you add this printer manually, using the GUI, to make sure that isn’t the issue?

(BTW, I’m assuming you also asked at http://social.technet.microsoft.com/For … cd0e3bd467 - LMK if any of that advice was useful or not, so that I don’t repeat suggestions that you have already tried)