查询组成员(group)

查询组成员

$groupname = "groupname"
$members = (get-adgroup $groupname -properties member).member
$members | % {(get-aduser $_).samaccountname |out-file e:\powershell\gusers.txt -append}

 

posted on 2015-09-25 12:07  momingliu11  阅读(641)  评论(0编辑  收藏  举报