Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Search for All Printers of a Specified ModelContent of Search for All Printers of a Specified Model.ps1MD5 Hash: 288E8EA25027C78289DDA53F648A33C6 |
||
$strFilter = "(&(objectCategory=printQueue)(driverName=HP LaserJet M4345 MFP PCL 6))"
$objDomain = New-Object System.DirectoryServices.DirectoryEntry $objSearcher = New-Object System.DirectoryServices.DirectorySearcher $objSearcher.SearchRoot = $objDomain $objSearcher.PageSize = 1000 $objSearcher.Filter = $strFilter $colProplist = "name" foreach ($i in $colPropList){$objSearcher.PropertiesToLoad.Add($i)} $colResults = $objSearcher.FindAll() foreach ($objResult in $colResults) {$objItem = $objResult.Properties; $objItem.name} | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |