asked on
Good Day,
Looking to get a bulk csv list of SamAccountName's added to a AD group was wondering if any one had any suggestions.
Currently using this script:
Import-Module ActiveDirectory
$Users = Get-Content "C:\Users\******\Desktop\*******" | ForEach-Object {Add-ADGroupMember -Identity "GroupName" -Members $_.'User-Name'}
Getting error message "Add-ADGroupMember: Cannot validate argument on parameter 'Members'. The argument is Null or empty.
Can anyone assist with this?