I have a script to delete photos from user email profiles and cannot see what is missing in the script:
# Prompt user for CSV file path
$filepath = Read-Host -Prompt ìEnter the path to your CSV file"
# Import the file into a variable
# Test file = test_run.csv
# Prod run = student_email_addresses.csv
$emailaddresses = Import-Csv $filepath
# Loop through each row and process each row
foreach ($email in $emailaddresses)
† {
# this command deletes the student's google profile photo
gam user $email delete photo
# echo $email
† }
It is not clear to me why I am getting the error msg when powershell processes this GAM script.