de-DEen-US
Language
Search
× Search
Saturday, October 12, 2024

Sys-Manage SetPrn Tool

SetPrn allows the system administrator to adjust printer settings like the orientation, paper format or paper source by running a command line tool.

SetPrn allows the system administrator to adjust printer settings like the orientation, paper format or paper source by running a command line tool.

Usually this has to be accomplished by the user in an interactive way using the mouse or keyboard.

Command Line Syntax

SetPrn {Printer-Name} [/O=1|2] [/S=1-15] [/F=1-118|Format Name]

Parameter Name Description
{Printer-Name} Name of the printer to change the settings for. This could be a local printer or a remote printer specified using a UNC path.
/O Set the orientation. Either /O=1 for portait or /O=2 for landscape.
/S Set the paper source (see table below for common values).
/F

Set the paper format either numeric, for example /F:1 for letter or by name, for example /F:LETTER (see table below for common values).

Examples

To change the orientation of printer "HP LaserJet" to landscape, you could run the following command:
SetPrn "HP LaserJet" /O=2

To change the paper format of printer "HP LaserJet" to A4 you could run the following command:
SetPrn "HP LaserJet" /F=9

or alternatively
SetPrn "HP LaserJet" /F=A4

To set the remote printer's "\\Server\HPLaserJ"  paper source to envelope you could run the following command:
SetPrn "\\Server\HPLaserJ" /S=5

Common Values for Paper Source

Parameter Description
1 First paper tray
1 Upper tray
2 Lower tray
3 Middle tray
4 Manual
5 Envelope
6 Envelope (manual)
7 Automatic
8 Tractor
9 Small paper format
10 Large paper format
11 Large capacity
14 Cassette
15 Form tray
15 Last paper tray

Common Values for Paper Format

Parameter Format Name
1 LETTER
2 LETTERSMALL
3 TABLOID
4 LEDGER
5 LEGAL
6 STATEMENT
7 EXECUTIVE
8 A3
9 A4
10 A4SMALL
11 A5
12 B4
13 B5
14 FOLIO
15 QUARTO
16 10X14
17 11X17
18 NOTE
19 ENV_9
20 ENV_10
21 ENV_11
22 ENV_12
23 ENV_14
24 CSHEET
25 DSHEET
26 ESHEET
27 ENV_DL
28 ENV_C5
29 ENV_C3
30 ENV_C4
31 ENV_C6
32 ENV_C65
33 ENV_B4
34 ENV_B5
35 ENV_B6
36 ENV_ITALY
37 ENV_MONARCH
38 ENV_PERSONAL
39 FANFOLD_US
40 FANFOLD_STD_GERMAN
41 FANFOLD_LGL_GERMAN
42 ISO_B4
43 JAPANESE_POSTCARD
44 9X11
45 10X11
46 15X11
47 ENV_INVITE
48 RESERVED_48
49 RESERVED_49
50 LETTER_EXTRA
51 LEGAL_EXTRA
52 TABLOID_EXTRA
53 A4_EXTRA
54 LETTER_TRANSVERSE
55 A4_TRANSVERSE
56 LETTER_EXTRA_TRANSVERSE
57 A_PLUS
58 B_PLUS
59 LETTER_PLUS
60 A4_PLUS
61 A5_TRANSVERSE
62 B5_TRANSVERSE
63 A3_EXTRA
64 A5_EXTRA
65 B5_EXTRA
66 A2
67 A3_TRANSVERSE
68 A3_EXTRA_TRANSVERSE
69 DBL_JAPANESE_POSTCARD
70 A6
71 JENV_KAKU2
72 JENV_KAKU3
73 JENV_CHOU3
74 JENV_CHOU4
75 LETTER_ROTATED
76 A3_ROTATED
77 A4_ROTATED
78 A5_ROTATED
79 B4_JIS_ROTATED
80 B5_JIS_ROTATED
81 JAPANESE_POSTCARD_ROTATED
82 DBL_JAPANESE_POSTCARD_ROTATED
83 A6_ROTATED
84 JENV_KAKU2_ROTATED
85 JENV_KAKU3_ROTATED
86 JENV_CHOU3_ROTATED
87 JENV_CHOU4_ROTATED
88 B6_JIS
89 B6_JIS_ROTATED
90 12X11
91 JENV_YOU4
92 JENV_YOU4_ROTATED
93 P16K
94 P32K
95 P32KBIG
96 PENV_1
97 PENV_2
98 PENV_3

Download

You need to get registered or login before you can download files.

Terms Of UsePrivacy StatementCopyright © Sys-Manage, 1998-2024. All Rights Reserved.
Back To Top