zoukankan      html  css  js  c++  java
  • [O365] Azure Active Directory Sync EVENT ID 906 FAILED While Purging Run History. Invalid Namespace

    转自《https://www.pbnet.ro/?p=834

    OK, so you notice that your AADSync scheduled job runs but no sync occurs between your on-prem AD and Azure AD.

    Also, when manually running D:Program FilesMicrosoft Azure AD SyncBinDirectorySyncClientCmd.exe nothing happens on the sync side.

    When you verify your server’s application logs, you notice:

    Failed while Purging Run History
    Invalid namespace
    at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
    at System.Management.ManagementScope.InitializeGuts(Object o)
    at System.Management.ManagementScope.Initialize()
    at System.Management.ManagementObjectSearcher.Initialize()
    at System.Management.ManagementObjectSearcher.Get()
    at Microsoft.Azure.ActiveDirectory.Synchronization.DirectorySyncClientCmd.Program.PurgeRunHistory(TimeSpan purgeInterval)
    at Microsoft.Azure.ActiveDirectory.Synchronization.Framework.ActionExecutor.Execute(Action action, String description)
    at Microsoft.Azure.ActiveDirectory.Synchronization.DirectorySyncClientCmd.Program.Main(String[] args)

    Root cause

    This happens when the WMI object had unregistered itself which might be caused by another tool installed or uninstalled at the time when the problem started to occur.

    Resolution:
    To resolve the issue, run the commands below:
    mofcomp “D:Program FilesMicrosoft Azure AD SyncBinmmswmi.mof”
    regsvr32 /s “D:Program FilesMicrosoft Azure AD SyncBinmmswmi.dll”

    net stop winmgmt /y

    net start winmgmt
    net start “IP Helper”
    net start “User Access Logging Service”
    net start “Microsoft Azure AD Sync”

    D:Program FilesMicrosoft Azure AD SyncBinDirectorySyncClientCmd.exe”

    Now your AdSync scheduled task should run successfully (you can check that using MIISClient).

  • 相关阅读:
    面试题:区分List中remove(int index)和remove(Object obj)
    Collection的子接口之一:List 接口
    面试题:ArrayList、LinkedList、Vector三者的异同?
    jdk 5.0 新增的foreach循环(用于遍历集合、数组)
    Iterator迭代器接口(遍历Collection的两种方式之一)
    哈希值
    Collection接口方法
    集合框架的概述
    注解(Annotation)
    System类、Math类、BigInteger与BigDecimal的使用
  • 原文地址:https://www.cnblogs.com/junjiany/p/10813246.html
Copyright © 2011-2022 走看看