Oct 06 2020 10:22 AM
I have a simply Excel CVS files that contains the user's last name & email address. The PowerShell script I'm using is erroring out. Does anyone have a script that I may be able to used. FYI: I'm a newbie to PowerShell
Oct 06 2020 02:05 PM
Oct 06 2020 06:41 PM
Oct 07 2020 12:15 AM - edited Oct 07 2020 05:58 AM
Ok easy one to fix. Move the CSV file into a folder called scripts and change the import command to:
Import-Csv "c:\scripts\thomastest.csv"
Running directly from the C: drive can sometimes cause issues, probably not the problem here but good practice to put it into a scripts folder
also I notice you don't have a file extension on your import command. Without the file extension your import-csv will fail
Oct 08 2020 03:53 PM
Still not working. One thing that I'm noticing that may be the problem, is the {Add-DistributionGroupMember command. I notice when I begin to type in PowerShell ISE the Add-DistributionGroupMember does not populate like other commands @SeanMcAvinue
Oct 08 2020 04:32 PM