Add Printers for WSD Ports

Hi All

I am trying to add a printer with WSD ports using PowerShell Add-Printer Command. I understand that the parameters used are -Name, -ComputerName , -DeviceURL or -DeviceUUID. How do I find and pass the correct DeviceURL or DeviceUUID. Could anyone please help me?

I see that I have the WSD Print Provider in the respective PC under DeviceManager console.


Also if possible for existing Printers with WSD Ports. Does the LocationInformation provide the IP address of the Printers?

Can I directly use Add-Printer or do I need to follow any other steps like Add-PrinterPort before calling the Add-Printer.