WMI: ExecuteKCC

by KaiY at 2013-04-15 15:03:47

Hi,
I’m writing this post because I’ve been trying to execute a kcc consistencycheck on a DC since several hours via WMI/ MSAD_DomainController-Class

http://msdn.microsoft.com/de-de/library … 85%29.aspx

My tries like
$WMI = Get-WmiObject -Namespace root\MicrosoftActiveDirectory -Class MSAD_DomainController
$WMI.ExecuteKCC(0,0)

or also
$WMI.ExecuteKCC.InvokeMethod(“KCCExecute”,0,0)
have failed

Perhaps you have an idea, how to use this useful method or perhaps even a better alternative

Thanks
Kai
by JeffH at 2013-04-15 17:09:22
What is the error message that you get?