O'Reilly logo

Windows Server® 2008 Administrator’s Companion by Charlie Russel and Sharon Crawford

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

Managing Printers from the Command Line

Windows Server 2008 makes command-line administration practical for Windows administrators. You can perform almost all administration tasks from a command line—printers included. Use the following list of commands and scripts to get started.

  • Print. Prints the specified text file to the specified printer.

  • Lpr. Prints the specified text file to the specified LPD print queue.

  • Net print. Displays information about the specified print queue or print job. Can also hold, release, or delete print jobs.

  • Lpq. Displays information about the specified LPD print queue.

  • Net start. Starts the specified service. You can use the Net start spooler and Net stop spooler commands to start or stop the spooler service.

    Note

    To view a ...

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