exchange:scp-endpunkte_in_ad_finden
no way to compare when less than two revisions
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
— | exchange:scp-endpunkte_in_ad_finden [2019/01/03 17:49] (aktuell) – angelegt ronny | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== SCP-Endpunkte in AD finden ====== | ||
+ | |||
+ | <code Powershell> | ||
+ | $obj = @() | ||
+ | |||
+ | $ADDomain = Get-ADDomain | Select DistinguishedName | ||
+ | $DSSearch = New-Object System.DirectoryServices.DirectorySearcher | ||
+ | $DSSearch.Filter = ' | ||
+ | $DSSearch.SearchRoot = ' | ||
+ | $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:// | ||
+ | |||
+ | {{tag> | ||
+ | </ | ||
exchange/scp-endpunkte_in_ad_finden.txt · Zuletzt geändert: 2019/01/03 17:49 von ronny