Prnjobs.vbs Command In Windows Server 2008

This article shows how to use Prnjobs.vbs command in Windows Server 2008 operating system.
  • 1746

Introduction

Prnjobs.vbs command  in Windows Server 2008 is used to pauses, resumes, cancels and lists print jobs. Syntax used for Prnjobs.vbs command is given below.

Syntax

Cscript Prnjobs {-z | -m | -x | -l | -?} [-s <ServerName>] [-p <PrinterName>] [-j <JobID>] [-u <UserName>] [-w <Password>]

Parameters For Prnjobs.vbs

Parameter Description
-z Pauses the print job specified with the -j parameter.
-m Resumes the print job specified with the -j parameter.
-x Cancels the print job specified with the -j parameter.
-l Lists all the print jobs in a print queue.
-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.
-j <JobID> Defines the print job you want to cancel.
-u <UserName> -w <Password> Defines an account with permissions to connect to the computer that hosts the printer that you want to manage.
/? Shows 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.