New
#1
Add account picture from command line 1809
I want to have my script automatically set up an account picture for a user.
In Windows 10 1809 17763 the account pictures are located at %APPDATA%\Microsoft\Windows\AccountPictures.
Images are stored with a string name such as '81b56e057727e2f4', not an actual file name.
The reference to this image in the registry is HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\AccountPicture
However, putting the images in the correct folder and adding the registry key still does not display the account picture.
Using RegFromApp and manually adding it via the settings app I see that it creates an entry at;
HKEY_CURRENT_USER\Software\Classes\Local Settings\MuiCache\xxx\52C64B7E with a name of
@windows.UI.Immersive.dll,-38306
And its value is 'Account Picture'
The problem is the xxx in the registry path above is different for each installation.
The value at the end of the name seems to be constant.
-38306 for a user account picture
-23570 for the default account picture.
So my question is how can I get the account picture to display from the script without having each user manually configure it?