Product: PowerShell Universal Version: 4.1.4
Hi! I’m trying to rebuild one of my PS scripts in PSU but can’t get it to work properly. I’m pretty new to it.
The script is supposed to copy the members of an AD group to another AD group. I want the user to be able to search for a group (with wildcards), select the one needed and repeat that for the second group.
Does anyone know a good way to accomplish this?
Recommended Answer
You could look at an Autocomplete
New-UDAutocomplete -id "Group1" -OnLoadOptions {
Get-ADGroup -Filter "samaccountname -like '*$body*'" | Select-Object -ExpandProperty samaccountname | ConvertTo-Json
}
Or a textbox and a submit button to populate a TransferList
You could look at an Autocomplete
New-UDAutocomplete -id "Group1" -OnLoadOptions {
Get-ADGroup -Filter "samaccountname -like '*$body*'" | Select-Object -ExpandProperty samaccountname | ConvertTo-Json
}
Or a textbox and a submit button to populate a TransferList
That did the trick! Thank you so much