SUPINFO International University

SUPINFO Institute of Information Technology
Laboratoire Microsoft




Imprimer une page de test avec une imprimante

Accueil > Script > maintenance > Imprimer une page de test avec une imprimante

Imprimer une page de test avec une imprimante

Par Alexandre VILLOING, LABORATOIRE SUPINFO DES TECHNOLOGIES MICROSOFT
Publiée le 25/04/2005 vers 1h.

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")

Set colPrinters = objWMIService.ExecQuery _
("Select * from Win32_Printer Where DeviceID = '\\\\atl-ps-01\\color-printer'")

For Each objPrinter in colPrinters
errReturn = objPrinter.PrintTestPage
If errReturn = 0 Then
Wscript.Echo "The test page was printed successfully."
Else
Wscript.Echo "The test page could not be printed."
End If
Next



Proposer un script

Notre avis :

Votre avis :

Réactions :
0

Votants :
4

Visites :
11885

1
2
3
4
5




Retrouvez ci-dessous les autres sections du Laboratoire Microsoft