Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Search for a User with a Specified Work Phone NumberContent of Search for a User with a Specified Work Phone Number.ps1MD5 Hash: FF3676504EEADFA22E5162DFEC0C474B |
||
$strFilter = "(&(objectCategory=User)(telephoneNumber=+1 (425) 55500924))"
$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 :: |