DSAGEY Posted August 5, 2022 Posted August 5, 2022 Hello, Does anyone know of a script or easy way to update all users account pictures from the default to our school logo? Most of our machines are Windows 11 and have a handful of machines on Windows 10. I have searched up on it but the only way I have found is to do it manually? Thank you
LeMarchand Posted August 5, 2022 Posted August 5, 2022 I'm sure I have this at one site, but not there until Tuesday and no remote access. Does this method not work? https://admx.help/?Category=Windows_10_2016&Policy=Microsoft.Policies.ControlPanel2::UseDefaultTile You may also be able to use: Just copy a suitable image to the default path as in the first solution. 1
TechMonkey Posted August 5, 2022 Posted August 5, 2022 Depends on what is needed, I think that only changes the cyclops picture to what you choose. It won't change the AD picture or be loaded up to Azure or O365 This code will set an O365 picture of a chosen Group. # Set School logo as 365 picture #Connect Exchange Online Import-Module ExchangeOnlineManagement Connect-ExchangeOnline #Connect AAD for groups Connect-AzureAD #Logo location $logo = "c:\random\o365Logo.png" #get groupID of Group to look at $group = Get-AzureADGroup -Filter "DisplayName eq 'All Pupils Sixth Form'" #Members of group $groupMembers = Get-AzureADGroupMember -ObjectID $group.ObjectId -All $true ForEach ($groupMember in $GroupMembers) { Write-Host "Updating photo for" $groupMember.DisplayName -Foregroundcolor Red Set-UserPhoto -Identity $groupMember.UserPrincipalName -PictureData ([system.IO.File]::ReadAllBytes($logo)) -Confirm:$false }
DSAGEY Posted August 5, 2022 Author Posted August 5, 2022 I'm sure I have this at one site, but not there until Tuesday and no remote access. Does this method not work? https://admx.help/?Category=Windows_10_2016&Policy=Microsoft.Policies.ControlPanel2::UseDefaultTile You may also be able to use: [ATTACH=CONFIG]66173[/ATTACH] Just copy a suitable image to the default path as in the first solution. Thank you - I wil take a look. - - - Updated - - - Depends on what is needed, I think that only changes the cyclops picture to what you choose. It won't change the AD picture or be loaded up to Azure or O365 This code will set an O365 picture of a chosen Group. # Set School logo as 365 picture #Connect Exchange Online Import-Module ExchangeOnlineManagement Connect-ExchangeOnline #Connect AAD for groups Connect-AzureAD #Logo location $logo = "c:\random\o365Logo.png" #get groupID of Group to look at $group = Get-AzureADGroup -Filter "DisplayName eq 'All Pupils Sixth Form'" #Members of group $groupMembers = Get-AzureADGroupMember -ObjectID $group.ObjectId -All $true ForEach ($groupMember in $GroupMembers) { Write-Host "Updating photo for" $groupMember.DisplayName -Foregroundcolor Red Set-UserPhoto -Identity $groupMember.UserPrincipalName -PictureData ([system.IO.File]::ReadAllBytes($logo)) -Confirm:$false } Thank you - we don't usse Azure, I just simply want to change the account picture on the login screen and start button.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now