Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Search for All Computers Managed by a Specified UserContent of Search for All Computers Managed by a Specified User.ps1MD5 Hash: 4180CD7F1F2AACF417FD6397046C304E |
||
$strFilter = "(&(objectCategory=Computer)(managedBy='CN=Ken Myer,CN=Users,dc=fabrikam,dc=com'))"
$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 :: |