[O365] Azure Active Directory Sync EVENT ID 906 FAILED While Purging Run History. Invalid Namespace

博客指出当AADSync计划作业运行但本地AD与Azure AD未同步,手动运行同步命令也无反应,查看服务器应用日志发现错误。问题根源是WMI对象未注册,可能因当时安装或卸载其他工具导致。给出解决命令,执行后AdSync计划任务应能成功运行。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

转自《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 Files\Microsoft Azure AD Sync\Bin\DirectorySyncClientCmd.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 Files\Microsoft Azure AD Sync\Bin\mmswmi.mof”
regsvr32 /s “D:\Program Files\Microsoft Azure AD Sync\Bin\mmswmi.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 Files\Microsoft Azure AD Sync\Bin\DirectorySyncClientCmd.exe”

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

转载于:https://www.cnblogs.com/junjiany/p/10813246.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值