|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 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 would be cool -m |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Hello,
Pausing Print Jobs - Microsoft® Windows® 2000 Scripting Guide http://www.microsoft.com/technet/scr..._prn_cbbz.mspx Hope it may . Best Regards, Kai On Nov 13, 5:25 am, mtfeliz <mtfe...@gmail.com> wrote: > 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 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 would be cool > -m |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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.bluesky@gmail.com> wrote in message news:1194923172.698923.3370@t8g2000prg.googlegroup s.com... Hello, Pausing Print Jobs - Microsoft® Windows® 2000 Scripting Guide http://www.microsoft.com/technet/scr..._prn_cbbz.mspx Hope it may . Best Regards, Kai On Nov 13, 5:25 am, mtfeliz <mtfe...@gmail.com> wrote: > 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 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 would be cool > -m |
|
![]() |
| Outils de la discussion | |
|
|