Install WSD Printer

Welcome Forums General PowerShell Q&A Install WSD Printer

This topic contains 0 replies, has 1 voice, and was last updated by  Forums Archives 7 years, 7 months ago.

  • Author
  • #5690

    Topics: 1562
    Replies: 0
    Points: 0
    Rank: Member

    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 ( ... 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 ... cd0e3bd467 – LMK if any of that advice was useful or not, so that I don't repeat suggestions that you have already tried)

The topic ‘Install WSD Printer’ is closed to new replies.