Introduction to group Common properties:
First, Get-adgroup get the group (the following example loops to get the group's send permission)
#Send permissions for groups info$groups=get-adgroup-Filter*-searchscope Subtree-searchbase"ou=xx,ou=xx,dc=xx,dc=xx,dc=xx" #Get group name$export[Email protected]()foreach($group inch $groups) { $groupname=$group. sAMAccountName$disgroup=get-distributiongroup-identity$groupname $DisplayName=$disgroup. DisplayName$ou=$disgroup. OrganizationalUnit$OnlyFrom=$disgroup. Acceptmessagesonlyfrom#loop to get a list with group send permissions foreach($member inch $OnlyFrom) { $name=$member. RDN$info=new-Object PsObject$info| Add-member-membertype Noteproperty-name Groupname-value$groupname $info| Add-member-membertype Noteproperty-name Displayname-value$DisplayName $info| Add-member-membertype Noteproperty-name Ou-value$ou $info| Add-member-membertype Noteproperty-name Name-value$name $export+=$info #Loop get information about a person sending a permission list } }$export| Export-csv D:\ps\groupinfol.csv-Encoding utf8-notypeinformation
Several methods of Powershell Get Domain Group