Quantcast
Channel: Windows Server 2012 Essentials forum
Viewing all articles
Browse latest Browse all 6303

Dashboard Exchange-Integration - Windows Server 2012 R2 Essentials

$
0
0

Hello (at) all,

i try to integrate a Exchange 2013 Server. Essentials and Standard Server are both virtualized via Hyper-V 2012. Everytime I try to integrate it gives me an error that no Exchange Server could be found. Exchange works by the way. The Essentials Server is the only domain controller (learned that one the hard way...) See the log below:

[2808] 131106.134040.8469: General: Initializing...C:\Windows\System32\Essentials\OPEWizard.exe
[6456] 131106.134044.2884: GettingStartedWizard: Start OPE service
[6456] 131106.134044.3666: WssgCommon: Information: [0] : WseEmailSvc is already in the desired state.
[6456] 131106.134045.9919: PfBinding: Information: [0] : Adding service dns identity [DC02] in proxy endpoint.
[7184] 131106.134048.2266: OPEManager: TResult : Boolean, args : Microsoft.WindowsServerSolutions.Common.ProviderFramework.OperationInvokeEventArgs`1[System.Boolean]
[7184] 131106.134048.2266: OPEManager: actualArgs : Microsoft.WindowsServerSolutions.Common.ProviderFramework.OperationInvokeEventArgs`1[System.Boolean]
[6456] 131106.134048.2266: GettingStartedWizard: goto error page : OPEOperationFault = ExchangeSeverNotFound
Microsoft.WindowsServerSolutions.OPEIntegration.OnPremiseExchangeException: No Exchange server found
   bei Microsoft.WindowsServerSolutions.OPEIntegration.OPEProviderCore.Activate()
   bei Microsoft.WindowsServerSolutions.Common.ProviderFramework.ProviderBase`1.<>c__DisplayClass4.<InvokeOperation>b__3()
   bei Microsoft.WindowsServerSolutions.Common.ProviderFramework.ProviderBase`1.InvokeOperation[TResult](String operationName, Func`1 func)

I know that the OPEIntegration works via LDAP. If I search the Exchange-Server via the following script I find it without any problems.

Function Get-ExchangeServerInSite {
    $ADSite = [System.DirectoryServices.ActiveDirectory.ActiveDirectorySite]
    $siteDN = $ADSite::GetComputerSite().GetDirectoryEntry().distinguishedName
    $configNC=([ADSI]"LDAP://RootDse").configurationNamingContext
    $search = new-object DirectoryServices.DirectorySearcher([ADSI]"LDAP://$configNC")
    $objectClass = "objectClass=msExchExchangeServer"
    $site = "msExchServerSite=$siteDN"
    $search.Filter = "(&($objectClass)($site))"
    $search.PageSize=1000
    [void] $search.PropertiesToLoad.Add("name")
    [void] $search.PropertiesToLoad.Add("msexchcurrentserverroles")
    [void] $search.PropertiesToLoad.Add("networkaddress")
    $search.FindAll() | %{
        New-Object PSObject -Property @{
            Name = $_.Properties.name[0]
            FQDN = $_.Properties.networkaddress |
                %{if ($_ -match "ncacn_ip_tcp") {$_.split(":")[1]}}
            Roles = $_.Properties.msexchcurrentserverroles[0]
        }
    }
}

    $role = @{
    2  = "MB"
    4  = "CAS"
    16 = "UM"
    32 = "HT"
    64 = "ET"
}


   foreach ($server in Get-ExchangeServerinSite) {
  $roles = ($role.keys | ?{$_ -band $server.roles} | %{$role.Get_Item($_)}) -join ", "
  $server | select Name, @{n="Roles";e={$roles}},FQDN
}

Any help would be greatly appreciated. Sorry for the poor english...

Olli



Viewing all articles
Browse latest Browse all 6303

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>