Hello,
Thought I was doing some real simple here. I have a file named sdedot.csv formatted as follows:
ID,Name Ha996622,Bobby Ha224411,Mary
I tried running the following to load a Global Security group with the ID, or in our case, SamAccountNames specified in the sdedot.csv file, howerver no objects are loaded into the group. The script runs and ends, producing no error messages but not loading the group with members.
Import-Csv Sdedot.csv | Foreach-Object { Add-AdGroupMember -Identity MyGlobGroup -Member $_.ID }
Any ideas? Thanks in advance.
Thanks for your help! SdeDot