简体   繁体   English

列出属于Active Directory域中其他组成员的组

[英]List groups that are members of other groups in Active Directory domain

does anybody know a way how to find full members (users and groups) of domain. 有谁知道一种方法来查找域的完整成员(用户和组)。

Similar as to 'net localgroup Administrators' reports both - users and groups that are members of group Administrators, however similar command in relation to domain 'net group /domain ' lists only members (not groups). 与“ net localgroup Administrators”报告类似,都是作为组Administrators成员的用户和组,但是与域“ net group / domain”相关的类似命令仅列出成员(而非组)。 Is there a simple way (w/o Powershell to accomplish this task)? 有没有简单的方法(无需Powershell即可完成此任务)?

Thanks in advance. 提前致谢。 Jurz 于尔兹

dsget and dsquery are the likely candidates here (depending on OS you are trying for) dsget和dsquery是这里的候选对象(取决于您要使用的操作系统)

You can try this (I'm not at a DC to test it at the moment) 您可以尝试此操作(目前我不在DC进行测试)

Groups are 组是

dsquery group DC=Contoso,DC=Com

User's should be 用户的应该是

dsquery user dc=ms,dc=tld 

Also note you can pipe from one command to another - ie get groups then users 还要注意,您可以从一个命令传递到另一个命令-即先获取组,然后再获取用户

dsquery group DC=contoso,DC=com -name yourgroup | dsget group -members 

You can try without -name and see if it works. 您可以尝试不使用-name并查看它是否有效。

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

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