Syntax pattern from Microsoft Learn; replace placeholders and choose only one documented alternative before use.
lpr [-S <servername>] -P <printername> [-C <bannercontent>] [-J <jobname>] [-o | -o l] [-x] [-d] <filename>Sends a file to a computer or printer sharing device running the Line printer Daemon (LPD) service in preparation for printing. This guide lists the documented syntax and parameters for lpr; check Microsoft Learn for version, role and execution-context requirements.
lpr [-S <servername>] -P <printername> [-C <bannercontent>] [-J <jobname>] [-o | -o l] [-x] [-d] <filename>The linked Microsoft Learn article is the upstream authority. Availability may depend on Windows release, role, optional feature or interactive tool context.
Syntax pattern from Microsoft Learn; replace placeholders and choose only one documented alternative before use.
lpr [-S <servername>] -P <printername> [-C <bannercontent>] [-J <jobname>] [-o | -o l] [-x] [-d] <filename>| Option / clause | Description |
|---|---|
-S <servername> | Microsoft documents this switch; use the linked reference for accepted values, effects and version limits. |
-P <printername> | Microsoft documents this switch; use the linked reference for accepted values, effects and version limits. |
-S | Microsoft documents this switch; use the linked reference for accepted values, effects and version limits. |
<servername> | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
-P | Microsoft documents this switch; use the linked reference for accepted values, effects and version limits. |
<printername> | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
-C | Microsoft documents this switch; use the linked reference for accepted values, effects and version limits. |
<bannercontent> | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
-J | Microsoft documents this switch; use the linked reference for accepted values, effects and version limits. |
<jobname> | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
-o | Microsoft documents this switch; use the linked reference for accepted values, effects and version limits. |
-x | Microsoft documents this switch; use the linked reference for accepted values, effects and version limits. |
-d | Microsoft documents this switch; use the linked reference for accepted values, effects and version limits. |
<filename> | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.