dsadd 在目录中创建对象
dsget 获取对象的特定属性值
dsmod 修改对象的特定属性值
dsmove 移动容器或者OU
dsrm 删除对象
dsquery 查询对象信息
修饰符:对象类型、对象DN
dsadd user "cn=Taylor Swift,ou=rs, dc=contoso,dc,com"
dsget user "cn=Taylor Swift,ou=rs, dc=contoso,dc,com"
dsrm user "cn=Taylor Swift,ou=rs, dc=contoso,dc,com"
dsquery user "cn=Taylor Swift,ou=rs, dc=contoso,dc,com"
dsquery user “ou=rs, dc=contoso, dc=com” | dsmod group "cn=shadow,ou=rs,dc=contoso,dc=com" -chmbr
将OU内所有User加入到shadow组中
-chmbr changes/replaces the complete list of members in the group
-addmbr adds members to the group
-rmmbr removes members from the group
阅读(364) | 评论(0) | 转发(0) |