Hello @Ramesh, Swaroop ,
Thanks for your query.
1.Your powershell command "lprhostaddress", "lprbytecounting" and "lprqueuename" are used when installing a TCP/IP printer port in LPR mode.
2.Please try the following command: Add-PrinterPort -ComputerName PrintServer -PrinterName $printer -HostName 'PrinterHostName'
Quick Tip - Create New LPR Printers Using PowerShell: https://thomasrayner.ca/quick-tip-create-new-lpr-printers-using-powershell/
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.