I want to update a set of AD users with a nested powershell command and I need help with that :(
- Get all users with a specific attribute (Get-ADUser -Filter 'extensionAttribute1 -like "*"')
- Add this users to a specific group (Add-ADGroupMember -Identity "GroupNAME" -Member USERNAME)
- Delete the extension attribute (Set-ADUser –Identity USERNAME -Clear "extensionattribute1")
Thanks for your help!