For out students, we want a single image for their GSuite profile photos. Sadly there isn’t a way of preventing users from changing their photo, so we have to run a script regularly to remove any changes they may have made.
#- Address of the group -#
$groupAddress = "[email protected]"
#- Location of image -#
$imageLocation = "C:\Folder\image.jpg"
#- Set the image -#
.\gam.exe group $groupAddress update photo $imageLocation