简体   繁体   English

通过脚本更改 Active Directory LDAP 用户或组权限

[英]change Active Directory LDAP user or group permissions via script

I Have a question for you我有一个问题问你

I want to create a script to configure a fresh install of Active directory Server 2008 R2.我想创建一个脚本来配置 Active Directory Server 2008 R2 的全新安装。 Basically, Create OU.基本上,创建 OU。 Create some user accounts and groups in the OU (Managed to handle up to here ) And then… Add users and groups to another group while setting their permissions on that group object.在 OU 中创建一些用户帐户和组(管理到这里处理)然后……将用户和组添加到另一个组,同时设置他们对该组对象的权限。

Don't have a clue of how to do that, tried to create new rule, and access the security object, nothing worked for me yet.不知道如何做到这一点,尝试创建新规则并访问安全对象,但对我来说还没有任何效果。

I'm using C# but If you have a lead for me that uses PowerShell, that would be great too.我正在使用 C#,但如果您有使用 PowerShell 的线索,那也很棒。

Thank you very much,非常感谢,

Dave.戴夫。

Checkout the AD cmdlets for this (everything you want to do is in the documentation).为此检查 AD cmdlet(您想要做的一切都在文档中)。 I would also refer from installing 2008R2 for a new domain since this product is already out of mainstream support (it has been succeeded with 3 new versions, 2012, 2012R2 and the new one that will be on the VL portal in a few days)我也会参考为新域安装 2008R2,因为该产品已经脱离主流支持(已经成功推出 3 个新版本,2012、2012R2 和几天后将在 VL 门户上的新版本)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM