本地小组到亚当小组,问题 [英] Local group to adam group, problem

查看:104
本文介绍了本地小组到亚当小组,问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将本地组添加到亚当组,并且抛出异常

I am trying to add local group to adam group and it throws an exception

"Only domain Principal objects can be inserted into groups in this store."



这是代码,组是System.DirectoryServices.AccountManagement
中的GroupPrincipal实例.



This is the code, groups are GroupPrincipal instances from System.DirectoryServices.AccountManagement

adamGroup.Members.Add(machineGroup);
adamGroup.Save();



尝试将adam组中的域组和adam组添加到adam组中时起作用
只有本地组有此问题



It works when trying to add domain group in adam group and adam group to adam group
Only local groups have this problem

推荐答案

为什么您会尝试将本地组添加到域组?对于我所见过的任何情况,这根本没有任何意义.

是的,它永远都行不通.您不能将本地计算机上的组或用户添加到域组.它只能容纳域用户和组.
Why on earth would you try to add a local group to a domain group? It doesn''t make any sense at all, for any situation I''ve ever seen.

Yes, it''s never going to work. You cannot add a group or user from a local machine to a domain group. It can only hold domain users and groups.


这篇关于本地小组到亚当小组,问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆