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



Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.