Feature request - AD import group members

Mar 19, 2013 at 8:10 PM
Firstly, epic script.

This is regarding the Open-DomainDialog function / "Enter the LDAP path for the Domain or press OK to use the default domain."
We have groups in the directory for various batches of systems and their patch policy. These policies are built around maintenance windows. i.e. we have an auto-patch group, a manual patch only group, and so on.
Currently we import these by way of a text file generated by code like this:

$wsusgroups = Get-ADGroup -Filter { Name -like "GPO-ServersWSUS*" }
foreach ($group in $wsusgroups) {
$target = $group.Name;
write-host Exporting members of $file to C:\Temp\$target.txt;
Get-ADGroupMember $group.SamAccountName | Select-Object -Expand Name | Out-File C:\Temp\$target.txt

I tried using the CN for the group in the dialog but looking at the code I can see why it won't accept that. But could easily be improved to do so. Feature request!
Apr 19, 2013 at 2:27 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.