Puppet 无法将用户添加到 AD 组

Puppet 无法将用户添加到 AD 组

我正在尝试使用 Puppet 将用户添加到我的 DC 上的组中:

 dsc_xgroup {'DomainAdministrators':

            dsc_ensure    => 'present',
            dsc_memberstoinclude => '[email protected]',
            dsc_groupname   => 'test',
            dsc_credential => {
            'user' => '[email protected]',
            'password' => 'Passw0rd01'
            },
            }

组已创建,但无法向其中添加用户:

错误:PowerShell DSC 资源 MSFT_xGroupResource 无法执行 Set-

TargetResource functionality with error message: Exception calling "Save" with "0" argument(s): "An unknown directory user object was requested
"
Error: /Stage[main]/Main/Node[windows.example.com]/Dsc_xgroup[DomainAdministrators]/ensure: change from 'absent' to 'present' failed: PowerShell DSC resource MSFT_xGroupResource  failed to execute Set-TargetResource functionality with error message: Exception calling "Save" with "0" argument(s): "An unknown directory user object was requested

答案1

尝试重新启动 Windows 服务器,我遇到了类似的问题,重新启动解决了它。

相关内容