La Référence Absolue sur les Technologies Microsoft




Lister les imprimantes sur un ordinateur distant

Accueil > Script > windows_2003 > Lister les imprimantes sur un ordinateur distant

Lister les imprimantes sur un ordinateur distant

Par Ismaël LIMBADA, LABORATOIRE SUPINFO DES TECHNOLOGIES MICROSOFT
Publiée le 29/08/2006 vers 14h.

strComputer = "NOMDUPC"

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

Set colPrinters = objWMIService.ExecQuery("Select * From Win32_Printer")
    
For Each objPrinter in colPrinters
    If objPrinter.Attributes And 64 Then
        strPrinterType = "Local"
    Else
        strPrinterType = "Network"
    End If
    Wscript.Echo objPrinter.Name & " -- " & strPrinterType
Next


Proposer un script

Notre avis :

Votre avis :

Réactions :
0

Votants :
1

Visites :
6647

1
2
3
4
5

Scripts Windows Précédent :

Renommer le service RDP-tcp



Retrouvez ci-dessous les autres sections du Laboratoire Microsoft