You could try this script, it will step through all existing users - https://scriptingosx.com/2018/10/changing-a-users-login-picture/
@SirDewalt
#!/bin/bash
: HEADER = <<'EOL'
██████╗ ██████╗ ██████╗██╗ ██╗███████╗████████╗███╗ ███╗ █████╗ ███╗ ██╗
██╔══██╗██╔═══██╗██╔════╝██║ ██╔╝██╔════╝╚══██╔══╝████╗ ████║██╔══██╗████╗ ██║
██████╔╝██║ ██║██║ █████╔╝ █████╗ ██║ ██╔████╔██║███████║██╔██╗ ██║
██╔══██╗██║ ██║██║ ██╔═██╗ ██╔══╝ ██║ ██║╚██╔╝██║██╔══██║██║╚██╗██║
██║ ██║╚██████╔╝╚██████╗██║ ██╗███████╗ ██║ ██║ ╚═╝ ██║██║ ██║██║ ╚████║
╚═╝ ╚═╝ ╚═════╝ ╚═════╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝
Name: Hugonaut
Description: Modify End User Login Image
EOL
CURRENT_USER=$( $3 ]] && echo "$3" || defaults read /Library/Preferences/com.apple.loginwindow lastUserName)
dscl . delete /Users/$CURRENT_USER jpegphoto
dscl . delete /Users/$CURRENT_USER Picture
dscl . create /Users/$CURRENT_USER Picture "/Library/Application Support/DIRECTORY-NAME-HERE/LOGIN-IMAGE-HERE.png"
just replace "DIRECTORY-NAME-HERE" & "LOGIN-IMAGE-HERE.png" with the location / image you are deploying to the end users computer.
"
Thanks this is exactly what I needed.
@SirDewalt
#!/bin/bash
: HEADER = <<'EOL'
██████╗ ██████╗ ██████╗██╗ ██╗███████╗████████╗███╗ ███╗ █████╗ ███╗ ██╗
██╔══██╗██╔═══██╗██╔════╝██║ ██╔╝██╔════╝╚══██╔══╝████╗ ████║██╔══██╗████╗ ██║
██████╔╝██║ ██║██║ █████╔╝ █████╗ ██║ ██╔████╔██║███████║██╔██╗ ██║
██╔══██╗██║ ██║██║ ██╔═██╗ ██╔══╝ ██║ ██║╚██╔╝██║██╔══██║██║╚██╗██║
██║ ██║╚██████╔╝╚██████╗██║ ██╗███████╗ ██║ ██║ ╚═╝ ██║██║ ██║██║ ╚████║
╚═╝ ╚═╝ ╚═════╝ ╚═════╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝
Name: Hugonaut
Description: Modify End User Login Image
EOL
CURRENT_USER=$( $3 ]] && echo "$3" || defaults read /Library/Preferences/com.apple.loginwindow lastUserName)
dscl . delete /Users/$CURRENT_USER jpegphoto
dscl . delete /Users/$CURRENT_USER Picture
dscl . create /Users/$CURRENT_USER Picture "/Library/Application Support/DIRECTORY-NAME-HERE/LOGIN-IMAGE-HERE.png"
just replace "DIRECTORY-NAME-HERE" & "LOGIN-IMAGE-HERE.png" with the location / image you are deploying to the end users computer.
"
You can also create a variable and assigned it to Parameter 4: NEW_PICTURE="$4"
Then add your new variable to where you would type in the path in the script "${NEW_PICTURE}"
This will allow you to reuse the script without having to retype out a new path everytime.
Thanks this is exactly what I needed.
Just reporting in, this is still working in Sequoia 15.4. 🙌Thanks!