Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Purger la file d'impression

9 réponses
Avatar
Sergio
Bonjour,

Problématique :
Sous XP Pro, une imprimante connectée à un PC, d'autre PC impriment sur cette imprimante.

Le problème : Parfois cette imprimante est indisponible (plus de papier, on a oublié de l'allumer etc.) et les utilisateurs (du PC
"serveur" comme des autres) ne font que lancer plusieurs fois l'impression quand ça ne marche pas.

Du coup quand l'imprimante est "réparée" (parfois plusieurs jours après...) on se retrouve avec une imprimante qui dégueule plein de
pages inutiles ( C'est une salle en "libre-service", donc pas la peine de les récupérer...).

Pas moyen de purger systématiquement les files d'impression à l'extinction (ou à l'allumage) du PC histoire de sauver quelques forêts ?

--
Serge http://leserged.online.fr/
Mon blog: http://cahierdesergio.free.fr/
Soutenez le libre: http://www.framasoft.org

9 réponses

Avatar
CriCri
Salut

Et si tu supprimais bêtement tout ce qui se trouve dans
C:WINDOWSsystem32spoolPRINTERS ?

Cdlt
CC

PS - ça risque d'être verrouillé par 'spoolsv.exe', donc à ajouter aux
'PendingFileRenameOperations' avant la fermeture pour être supprimé au
prochain démarrage. Un chtit script à prévoir...

--
bitwyse [PGP KeyID 0xA79C8F2C]
http://www.le-maquis.net
C'est comme au CNRS: des chercheurs qui cherchent on en trouve
mais des chercheurs qui trouvent on en cherche.
Avatar
Jacques Perrocheau
In article <4e12f11e$0$28933$,
Sergio wrote:

Le problème : Parfois cette imprimante est indisponible (plus de papier, on a
oublié de l'allumer etc.) et les utilisateurs (du PC
"serveur" comme des autres) ne font que lancer plusieurs fois l'impression
quand ça ne marche pas.

Du coup quand l'imprimante est "réparée" (parfois plusieurs jours après...)
on se retrouve avec une imprimante qui dégueule plein de
pages inutiles ( C'est une salle en "libre-service", donc pas la peine de les
récupérer...).

Pas moyen de purger systématiquement les files d'impression à l'extinction
(ou à l'allumage) du PC histoire de sauver quelques forêts ?



Sur la machine à la quelle est connectée l'imprimante, aller dans
l'onglet sécurité de service d'impression en question et autoriser le
groupe "Utilisateurs" ou "Tout le monde" (selon les réglages de
partage), (ajouter le groupe "Utilisateurs" si nécessaire) à "gérer les
impressions" (pas les imprimantes), cocher "Gestion de Documents". Faire
la même chose dans l'onglet de sécurité du partage.

Les "utilisateurs" pourront alors purger la file d'impression à distance.

--
Jacques PERROCHEAU
CNRS UMR 6226
Université de Rennes 1, Campus de Beaulieu, 35042 RENNES Cedex, France
Avatar
Sergio
Le 05/07/2011 16:50, Jacques Perrocheau a écrit :

Le problème : Parfois cette imprimante est indisponible (plus de papier, on a
oublié de l'allumer etc.) et les utilisateurs (du PC
"serveur" comme des autres) ne font que lancer plusieurs fois l'impression
quand ça ne marche pas.

Du coup quand l'imprimante est "réparée" (parfois plusieurs jours après...)
on se retrouve avec une imprimante qui dégueule plein de
pages inutiles ( C'est une salle en "libre-service", donc pas la peine de les
récupérer...).

Pas moyen de purger systématiquement les files d'impression à l'extinction
(ou à l'allumage) du PC histoire de sauver quelques forêts ?



Sur la machine à la quelle est connectée l'imprimante, aller dans
l'onglet sécurité de service d'impression en question et autoriser le
groupe "Utilisateurs" ou "Tout le monde" (selon les réglages de
partage), (ajouter le groupe "Utilisateurs" si nécessaire) à "gérer les
impressions" (pas les imprimantes), cocher "Gestion de Documents". Faire
la même chose dans l'onglet de sécurité du partage.

Les "utilisateurs" pourront alors purger la file d'impression à distance.



Faut pas leur en demander tant !
Ce que je veux, c'est systématiquement purger les fichiers en attente sur le serveur !
La solution de Cricri semble bonne... Je vais essayer jeudi...

--
Serge http://leserged.online.fr/
Mon blog: http://cahierdesergio.free.fr/
Soutenez le libre: http://www.framasoft.org
Avatar
DuboisP
Le Tue, 05 Jul 2011 14:07:50 +0200, CriCri a
écrit:

Salut

Et si tu supprimais bêtement tout ce qui se trouve dans
C:WINDOWSsystem32spoolPRINTERS ?

Cdlt
CC

PS - ça risque d'être verrouillé par 'spoolsv.exe', donc à ajouter aux
'PendingFileRenameOperations' avant la fermeture pour être supprimé au
prochain démarrage. Un chtit script à prévoir...




rem à l'ouverture de session, par exemple
net stop services spoolsv.exe
del C:WINDOWSsystem32spoolPRINTERS*.*
rem ce répertoire, c'est le cas courant. à une époque, sur un de mes
serveurs, c'était ailleurs ;-)
net start services spoolsv.exe
--
Utilisant le client e-mail révolutionnaire d'Opera :
http://www.opera.com/mail/
Avatar
Sergio
Le 05/07/2011 18:29, DuboisP a écrit :
Le Tue, 05 Jul 2011 14:07:50 +0200, CriCri a écrit:

Salut

Et si tu supprimais bêtement tout ce qui se trouve dans
C:WINDOWSsystem32spoolPRINTERS ?

Cdlt
CC

PS - ça risque d'être verrouillé par 'spoolsv.exe', donc à ajouter aux
'PendingFileRenameOperations' avant la fermeture pour être supprimé au
prochain démarrage. Un chtit script à prévoir...




rem à l'ouverture de session, par exemple
net stop services spoolsv.exe
del C:WINDOWSsystem32spoolPRINTERS*.*
rem ce répertoire, c'est le cas courant. à une époque, sur un de mes serveurs, c'était ailleurs ;-)
net start services spoolsv.exe



Je note.

Pas moyen de le lancer /avant/ l'ouverture de session ? Les machines ont des comptes limités pour les utilisateurs de base. Donc à
l'ouverture de session ça risque de ne pas marcher...

--
Serge http://leserged.online.fr/
Mon blog: http://cahierdesergio.free.fr/
Soutenez le libre: http://www.framasoft.org
Avatar
Fernand DEMOUSTIER
Sergio a écrit :
Le 05/07/2011 18:29, DuboisP a écrit :
Le Tue, 05 Jul 2011 14:07:50 +0200, CriCri a
écrit:

Salut

Et si tu supprimais bêtement tout ce qui se trouve dans
C:WINDOWSsystem32spoolPRINTERS ?

Cdlt
CC

PS - ça risque d'être verrouillé par 'spoolsv.exe', donc à ajouter aux
'PendingFileRenameOperations' avant la fermeture pour être supprimé au
prochain démarrage. Un chtit script à prévoir...




rem à l'ouverture de session, par exemple
net stop services spoolsv.exe
del C:WINDOWSsystem32spoolPRINTERS*.*
rem ce répertoire, c'est le cas courant. à une époque, sur un de mes
serveurs, c'était ailleurs ;-)
net start services spoolsv.exe



Je note.

Pas moyen de le lancer /avant/ l'ouverture de session ? Les machines ont des
comptes limités pour les utilisateurs de base. Donc à l'ouverture de session
ça risque de ne pas marcher...



si vous êtes en contrôleur de domaine, c'est possible de mettre un GPO
pour l'execution d'un script au démarrage des postes clients.

cordialement.

--
Désolé, j'ai besoin d'être archivé par Google :

Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Fernand Demoustier
Avatar
CriCri
Salut

DuboisP a écrit :

net stop services spoolsv.exe



Bonne idée, mais ça serait plutôt
"net stop spooler"

rem ce répertoire, c'est le cas courant. à une époque, sur un de mes
serveurs, c'était ailleurs ;-)



À localiser dans
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows
NTCurrentVersionPrintPrinters]
"DefaultSpoolDirectory"="xxxyyyzzz"

Cdlt
CC

--
bitwyse [PGP KeyID 0xA79C8F2C]
http://www.le-maquis.net
C'est comme au CNRS: des chercheurs qui cherchent on en trouve
mais des chercheurs qui trouvent on en cherche.
Avatar
DuboisP
Le Tue, 05 Jul 2011 20:18:41 +0200, CriCri a
écrit:

Salut

DuboisP a écrit :

net stop services spoolsv.exe



Bonne idée, mais ça serait plutôt
"net stop spooler"




syntaxe non vérifiée, effectivement

rem ce répertoire, c'est le cas courant. à une époque, sur un de mes
serveurs, c'était ailleurs ;-)



À localiser dans
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows
NTCurrentVersionPrintPrinters]
"DefaultSpoolDirectory"="xxxyyyzzz"




si tu veux t'amuser dans la registry
sinon ça se fait sans problème dans les propriétés du serveur d'impression

--
Utilisant le client e-mail révolutionnaire d'Opera :
http://www.opera.com/mail/
Avatar
Ascadix
Sergio a pensé très fort :
Le 05/07/2011 18:29, DuboisP a écrit :
Le Tue, 05 Jul 2011 14:07:50 +0200, CriCri a
écrit:

Salut

Et si tu supprimais bêtement tout ce qui se trouve dans
C:WINDOWSsystem32spoolPRINTERS ?

Cdlt
CC

PS - ça risque d'être verrouillé par 'spoolsv.exe', donc à ajouter aux
'PendingFileRenameOperations' avant la fermeture pour être supprimé au
prochain démarrage. Un chtit script à prévoir...




rem à l'ouverture de session, par exemple
net stop services spoolsv.exe
del C:WINDOWSsystem32spoolPRINTERS*.*
rem ce répertoire, c'est le cas courant. à une époque, sur un de mes
serveurs, c'était ailleurs ;-)
net start services spoolsv.exe



Je note.

Pas moyen de le lancer /avant/ l'ouverture de session ? Les machines ont des
comptes limités pour les utilisateurs de base. Donc à l'ouverture de session
ça risque de ne pas marcher...



Tu créé une tache planifié "au démarage" qui lance le batch suivant:
à faire exécuter avec un compte admin ou simplement le compte "SYSTEM"

---
net stop spooler /Y
del C:WINDOWSsystem32spoolPRINTERS /s /Q
net start spooler
---

Perso, je mettrais même le service spooler en mode de démarage manuel.

--
@+
Ascadix
adresse @mail valide, mais ajoutez "sesame" dans l'objet pour que ça
arrive.