|
server
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Pausing a Windows 2000 print queue
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 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 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 Pausing Print Jobs - Microsoft® Windows® 2000 Scripting Guidenews:1194923172.698923.3370@t8g2000prg.googlegroups.com... Hello, 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 |
|||||||||||||||||||||||