This script is used to list out all the printers on a computer their Driver Name and the Port Name of the respective printers.
Smaple Output:
************Printer Name = DeviceID || Port Name = PortName || DriverName = DriverName***************
DeviceID : Fax (redirected 2)
DriverName : Remote Desktop Easy Print
PortName : TS005
Run the script as system user.