How do I add a printer that is connected to a WSD port. I've the IP Address of the device that I need to connect to. I tried the following
Add-Printer -Name 'test print' -DeviceURL 'ipaddress'. I've the driver already installed, but the port does not exist yet. I get the following error when I run the above from the admin mode.
+ Add-Printer -Name 'Test WSD Printer' -DeviceURL 'ipaddress'
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (MSFT_Printer:ROOT/StandardCimv2/MSFT_Printer) [Add-Printer], CimException
+ FullyQualifiedErrorId : HRESULT 0x8007200f,Add-Printer