I use :
ManagementObjectSearcher searcher = new
ManagementObjectSearcher("root\\CIMV2", "SELECT * FROM Win32_Printer");
to get printers but it find local printers.. It's possible to select network printers , by ip maybe ?
I use :
ManagementObjectSearcher searcher = new
ManagementObjectSearcher("root\\CIMV2", "SELECT * FROM Win32_Printer");
to get printers but it find local printers.. It's possible to select network printers , by ip maybe ?
Pass "Network" to the object indexer of each item in your ManagementObjectCollection. If the printer is a network printer it will return true. Likewise you can pass "Local" to determine if the printer is local.