Enable-WindowsOptionalFeature -Online -FeatureName Printing-PrintManagement -Restart To verify installation:
Get-Printer | Format-Table Name, PortName, DriverName, Shared Add a TCP/IP printer:
Add-PrinterPort -Name "IP_192.168.1.120" -PrinterHostAddress "192.168.1.120" Remove a printer and its driver:
Add-Printer -Name "Accounting-HP" -DriverName "HP Universal Printing PCL 6" -PortName "IP_192.168.1.120" Note: The port must exist first. Create a standard TCP/IP port: