Home All Groups Group Topic Archive Search About

Pausing a Windows 2000 print queue



Author
12 Nov 2007 9:25 PM
mtfeliz
Hello,

I need a way to pause a windows 2000 server print queue through a
script. I would like to pause the printer allowing jobs to queue until
the queue is resumed. The paused time period expands over a weekend so
setting the available time for the queue really does not help me. I
have tried this code... witch works against a windows 2003 queue.

To pause the queue
Set objPrinter = GetObject("WinNT://printserver1/ledbetter")
objPrinter.pause

To start the queue
Set objPrinter = GetObject("WinNT://printserver1/ledbetter")
objPrinter.resume

Any help would be cool
-m

Author
13 Nov 2007 3:06 AM
Bluesky
Hello,

Pausing Print Jobs - Microsoft® Windows® 2000 Scripting Guide
http://www.microsoft.com/technet/scriptcenter/guide/sas_prn_cbbz.mspx

Hope it may help.

Best Regards,
Kai

On Nov 13, 5:25 am, mtfeliz <mtfe***@gmail.com> wrote:
Show quote
> Hello,
>
> I need a way to pause a windows 2000 server print queue through a
> script. I would like to pause the printer allowing jobs to queue until
> the queue is resumed. The paused time period expands over a weekend so
> setting the available time for the queue really does not help me. I
> have tried this code... witch works against a windows 2003 queue.
>
> To pause the queue
> Set objPrinter = GetObject("WinNT://printserver1/ledbetter")
> objPrinter.pause
>
> To start the queue
> Set objPrinter = GetObject("WinNT://printserver1/ledbetter")
> objPrinter.resume
>
> Any help would be cool
> -m
Author
13 Nov 2007 8:13 PM
Alan Morris [MSFT]
I think the WMI set command is not supported for printers in Win2k.

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no rights.

"Bluesky" <kai.blue***@gmail.com> wrote in message
news:1194923172.698923.3370@t8g2000prg.googlegroups.com...
Hello,

Pausing Print Jobs - Microsoft® Windows® 2000 Scripting Guide
http://www.microsoft.com/technet/scriptcenter/guide/sas_prn_cbbz.mspx

Hope it may help.

Best Regards,
Kai

On Nov 13, 5:25 am, mtfeliz <mtfe***@gmail.com> wrote:
Show quote
> Hello,
>
> I need a way to pause a windows 2000 server print queue through a
> script. I would like to pause the printer allowing jobs to queue until
> the queue is resumed. The paused time period expands over a weekend so
> setting the available time for the queue really does not help me. I
> have tried this code... witch works against a windows 2003 queue.
>
> To pause the queue
> Set objPrinter = GetObject("WinNT://printserver1/ledbetter")
> objPrinter.pause
>
> To start the queue
> Set objPrinter = GetObject("WinNT://printserver1/ledbetter")
> objPrinter.resume
>
> Any help would be cool
> -m

AddThis Social Bookmark Button