Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Search for All the Site Links in a DomainContent of Search for All the Site Links in a Domain.ps1MD5 Hash: EB7000EBF8935D87EB7326349C158F0B |
||
$objRoot=[adsi]"LDAP://rootDSE"
$objPath="LDAP://" + $objRoot.configurationNamingContext $strFilter = "(objectClass=siteLink)" $objDomain = New-Object System.DirectoryServices.DirectoryEntry($objPath) $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 :: |