In our AD infrastructure the SYSVOL is replicated by DFSR. I want to force replication using WMI (ForceReplication method) via WMIC:
wmic /namespace:\\root\microsoftdfs path DfsrConnectionInfo call ForceReplication(15,10,2)
But this fails with:
Executing (DfsrConnectionInfo)->ForceReplication()
ERROR:
Description = Invalid method Parameter(s)
I double checked the argument order/type:
wmic /namespace:\\root\microsoftdfs path DfsrConnectionInfo call ForceReplication /?
Call [ In/Out ]Params&type Status
==== ===================== ======
ForceReplication [IN ]Bandwidth(uint32) Implemented
[IN ]DurationInMin(uint32)
[IN ]Mode(uint32)
[OUT]ReturnValue(uint32)
The same call in Powershell works:
(gwmi -Namespace root\microsoftdfs -Class DfsrConnectionInfo).ForceReplication(2, 10, 15)
Where am I wrong with WMIC and arguments?