Benutzer-Werkzeuge

Webseiten-Werkzeuge


exchange:scp-endpunkte_in_ad_finden

SCP-Endpunkte in AD finden

$obj = @()
 
$ADDomain = Get-ADDomain | Select DistinguishedName
$DSSearch = New-Object System.DirectoryServices.DirectorySearcher
$DSSearch.Filter = '(&(objectClass=serviceConnectionPoint)(|(keywords=67661d7F-8FC4-4fa7-BFAC-E1D7794C1F68)(keywords=77378F46-2C66-4aa9-A6A6-3E7A48B19596)))'
$DSSearch.SearchRoot = 'LDAP://CN=Configuration,'+$ADDomain.DistinguishedName
$DSSearch.FindAll() | %{
 
$ADSI = [ADSI]$_.Path
$autodiscover = New-Object psobject -Property @{
Server = [string]$ADSI.cn
Site = $adsi.keywords[0]
DateCreated = $adsi.WhenCreated.ToShortDateString()
AutoDiscoverInternalURI = [string]$adsi.ServiceBindingInformation
distinguishedName = $adsi.distinguishedName
}
$obj += $autodiscover
 
}
 
[[https://vanhybrid.com/2012/11/21/retrieving-exchange-autodiscover-scp-information-from-ad-via-powershell/|Quelle]]
 
{{tag>[Exchange SCP Service_Connection_Points Powershell]}}

exchange/scp-endpunkte_in_ad_finden.txt · Zuletzt geändert: 2019/01/03 17:49 von ronny

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki