我需要一个脚本来查找Group的成员及其属性 [英] I need a script to find the members of Group and their attributes

查看:73
本文介绍了我需要一个脚本来查找Group的成员及其属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个脚本来查找群组成员及其属性(例如,用户ID,显示姓名,电子邮件,电话号码和员工ID等) 

I need a script to find the members of Group and their attributes ( e.g  User id, Display Name, E-mail, Phone Number & Employee ID etc..) 

推荐答案

在PowerShell中,您可以使用Get-ADGroupMember来检索组的成员。请参阅此帮助;

In PowerShell you can use Get-ADGroupMember to retrieve the members of a group. See this help;

https://technet.microsoft.com /en-us/library/ee617193.aspx

对于Get-ADGroupMember中未包含的属性,您可以管道到Get-ADUser(如果您知道所有成员都是用户)或Get-ADObject。后两者都有一个-Properties参数,您可以在其中请求任何所需的属性(通过LDAPDisplayName)。

For attributes not included with Get-ADGroupMember, you can pipe to Get-ADUser (if you know all members are users) or to Get-ADObject. Both of the later have a -Properties parameter where you can request any attribute desired (by LDAPDisplayName).


这篇关于我需要一个脚本来查找Group的成员及其属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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