PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.win.server.scripting > Pausing a Windows 2000 print queue
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Pausing a Windows 2000 print queue

Réponse
 
LinkBack Outils de la discussion
Vieux 12/11/2007, 22h25   #1
mtfeliz
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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 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

  Réponse avec citation
Vieux 13/11/2007, 04h06   #2
Bluesky
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Pausing a Windows 2000 print queue

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


  Réponse avec citation
Vieux 13/11/2007, 21h13   #3
Alan Morris [MSFT]
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Pausing a Windows 2000 print queue

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



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h30.


Édité par : vBulletin® version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09988 seconds with 11 queries