O'Reilly logo

Windows PowerShell™ Scripting Guide by Ed Wilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Reporting on Printer Ports

Printer ports are critical, but people often are not sure what they really are. The general thought process seems to be that printer ports are those ambiguously named things that seem to have something to do with IP addresses. However, keep in mind that if printer ports are set incorrectly, print jobs may well vanish into cyberspace.

Figure 6-6 shows the printer ports as currently configured on a server.

An example of configured printer ports.

Figure 6-6. An example of configured printer ports.

The ListPrinterPorts.ps1 script defines two command-line parameters, $strComputer and $help, that are used to configure the way the script executes when run. If no parameters ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required