Prncnfg.vbs Command In Windows Server 2008

This article explains Prncnfg.vbs command in Windows Server 2008 operating system and also explains its syntax.
  • 2147

Introduction

Prncnfg.vbs command in Windows Server 2008 is used to configures or shows configuration information about a printer. Syntax used for Prncnfg.vbs is given below.

Syntax

Cscript Prncnfg {-g | -t | -x | -?} [-S <ServerName>] [-P <PrinterName>] [-z <NewPrinterName>] [-u <UserName>] [-w <Password>] [-r <PortName>] [-l <Location>] [-h <ShareName>] [-m <Comment>] [-f <SeparatorFileName>] [-y <DataType>] [-st <StartTime>] [-ut <UntilTime>] [-i <DefaultPriority>] [-o <Priority>] [<+ | ->shared] [<+ | ->direct] [<+ | ->hidden] [<+ | ->published] [<+ | ->rawonly] [<+ | ->queued] [<+ | ->enablebidi] [<+ | ->keepprintedjobs] [<+ | ->workoffline] [<+ | ->enabledevq] [<+ | ->docompletefirst]

Parameters For Prncnfg.vbs

Parameter Description
-g Shows configuration information about a printer.
-t Configures a printer.
-x Renames a printer.
-S <ServerName> Defines the name of the remote computer that hosts the printer that you want to manage.
-P <PrinterName> Defines the name of the printer that you want to manage.
-z <NewPrinterName> Defines the new printer name.
-u <UserName> -w <Password> Defines an account with permissions to connect to the computer that hosts the printer that you want to manage.
-r <PortName> Defines an account with permissions to connect to the computer that hosts the printer that you want to manage.
-l <Location> Defines the printer location, such as "Copy Room."
-h <ShareName> Defines the printer's share name.
-m <Comment> Defines the printer's comment string.
-f <SeparatorFileName> Defines a file that contains the text that appears on the separator page.
-y <DataType> Defines the data types that the printer can accept.
-st <StartTime> Configures the printer for limited availability.
-ut <EndTime> Configures the printer for limited availability.
-o <Priority> Defines a priority that the spooler uses to route print jobs into the print queue.
-i <DefaultPriority> Defines the default priority assigned to each print job.
{+|-}shared Defines whether this printer is shared on the network.
{+|-}direct Defines whether the document should be sent directly to the printer without being spooled.
{+|-}published Defines whether this printer should be published in Active Directory.
{+|-}hidden Reserved function.
{+|-}rawonly Defines whether only raw data print jobs can be spooled in this queue.
{+ | -}queued Defines that the printer should not begin to print until after the last page of the document is spooled.
{+ | -}keepprintedjobs Defines whether the spooler should retain documents after they are printed.
{+ | -}workoffline Defines whether a user is able to send print jobs to the print queue if the computer is not connected to the network.
{+ | -}enabledevq Defines whether print jobs that do not match the printer setup should be held in the queue rather than being printed.
{+ | -}docompletefirst Defines whether the spooler should send print jobs with a lower priority that have completed spooling before sending print jobs with a higher priority that have not completed spooling.
{+ | -}enablebidi Defines whether the printer sends status information to the spooler.
/? Show help at the command prompt.

Ask Your Question 

Got a programming related question? You may want to post your question here 

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.