具有 xActiveDirectory 的 DSC:验证域控制器升级的先决条件失败

DSC with xActiveDirectory: Verification of prerequisites for Domain Controller promotion failed

我开始成为 "Desired State Configuration" (DSC) 的忠实粉丝。伙计们,到目前为止做得很好!

我使用的是几周前发布的 "xActiveDirectory" 脚本 (https://gallery.technet.microsoft.com/scriptcenter/xActiveDirectory-f2d573f3)。在 Azure 中部署 VM 后,我收到以下错误:

工作{860932CF-ECE2-11E4-80BB-0003FF54BC14}: 此事件表示当 DSCEngine 在 MSFT_xADDomain DSC 资源上执行 Set-TargetResource 时引发了非终止错误。 FullyQualifiedErrorId 是 Test.VerifyDcPromoCore.DCPromo.General.77,Microsoft.DirectoryServices.Deployment.PowerShell.Commands.InstallADDSForestCommand。 ErrorMessage 是 域控制器升级的先决条件验证失败。无法识别指定的参数 'DataBasePath'。

到目前为止,我的机器已经变成了 DC,所以我不明白这个错误。非常感谢任何帮助。

谢谢。

您需要确保传递给 DSC 资源的域凭据是正确的。我已经看到这个问题并确认如果我没有传递正确的 $DomainAdministratorCredential 我会收到同样的错误。