Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List All the Printers on a Remote ComputerContent of List All the Printers on a Remote Computer.vbsMD5 Hash: F429B45BD53FEB7E5ADFAC9BBC302537 |
||
strComputer = "TestPC"
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 | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |