How to change default User Account picture to my custom picture in install.wim?

Krishnendu

New Member
Messages
15
Reaction score
0
already mount install.wim replace all image to my custom image from this location %PROGRAMDATA%\Microsoft\User Account Pictures\ but nothing happened , when install this wim file as usual same this picture
 
Run a cmd with:
takeown /f "%MOUNTDIR%:\NTLite\Temp\NLTmpMnt\ProgramData\Microsoft\User Account Pictures" /r /d y
ICACLS "%MOUNTDIR%:\NTLite\Temp\NLTmpMnt\ProgramData\Microsoft\User Account Pictures" /grant %USER%:F /T
where %MOUNTDIR% is the partion drive for the mounted NTLite image and %USER% is the name of current user.

You should be able to change and preserve your configured account pics.
Be sure pics are in the right resolution – Paint.NET can help with that.
 
Run a cmd with:

where %MOUNTDIR% is the partion drive for the mounted NTLite image and %USER% is the name of current user.

You should be able to change and preserve your configured account pics.
Be sure pics are in the right resolution – Paint.NET can help with that.
i already changed all above picture such as user.bmp ,and so all, but nothing happend
 
Credential Manager manages cached password data for websites (IE) and network profiles, it has no relation to account pictures.
 
We looked with nuhi to change the account image in the ISO (install.wim), and it's more complicated than that
It has been put on "stanby" since
 
We looked with nuhi to change the account image in the ISO (install.wim), and it's more complicated than that
It has been put on "stanby" since
which image file or *.*.dll file main case show the account picture , i can't find
 
not remove any component , just alter the picture
Your images are in the correct image formats, but not square, so something could indicate that the resolution is not correct for acceptance.
You can change the resolution/dimensions (pixels) in Paint.NET, as mentioned earlier.
Here changed in a NTLite mounted image of W11 631.3880 and works fine after install with local user and guest accounts.
View attachment 12325
 
which image file or *.*.dll file main case show the account picture , i can't find
The image is also "stored" in this directory C:\Users\Public\Public Account Pictures\<SID of user>
This is what "slowed" us from memory, the ID not being available in the ISO

And new image (image added) is "stored" in AppData\Local\Microsoft\Windows\AccountPicture
 
Last edited:
And also not visible/ available in that folder in an installed windows 11 and probably not in W10 either.
 
Yes, in Windows 10 and 11, have to uncheck the option to see files
 
Windows doesn't create a SID for itself, until the audit pass (which is why you generalize an image to remove the SID). Your user account SID is derived from the system SID, by adding extra digits to the end.

The real problem is when you create a new user account, the Default User profile lacks any personal image, so none would be copied into your new user account. There's a default user icon (from the Lock Screen) for every user who DOESN'T HAVE a personal picture.

So you can't assign a personal picture to a new account until after new user provisioning is done. This requires a script to check your current SID, and copy the files over. You could stage a folder of PNG files on the ISO for easy access.
 
He wants to change the image on the default account, not create a new one

The problem is that the "Users\Public\Public Account Pictures" directory does not exist in the ISO, it is created during installation, so it is impossible to add images to the account
For this reason with nuhi, we put this in "stanby" among other things

Afterwards, we didn't look any further (since W10, if I remember correctly) no "big use"
 
Last edited:
There's no SID either even unhide or show protected operational files on installed image.
If NTL should be able to change \User Account Pictures\ make a import function of any pic format, and then change to the 2 formats (.bmp and .png) and make them in the right dimension (pixels) shown above and replace the build-in ones.
It's working on w10 and 11.
 
Your images are in the correct image formats, but not square, so something could indicate that the resolution is not correct for acceptance.
You can change the resolution/dimensions (pixels) in Paint.NET, as mentioned earlier.
Here changed in a NTLite mounted image of W11 631.3880 and works fine after install with local user and guest accounts.
View attachment 12325
ok i will try this
 
Somehow it do.
Are you using different pics?
Asking as it looks like there's 3 different ones.

From login screen either user-32, -40 or -48 seems to work as showed in lower left corner for the 2 user accounts.
Does it show in startmenu beside username as well?

Windows can only handle the same accountpicture as it's a default icon.
 
I think my way might work. To do this, install Windows, install the account image you need, then open the place where the image is saved, it will be located in: C:\Users\Your account name is\AppData\Roaming\Microsoft\Windows\AccountPictures, copy your image from there (it will be without the extension: Avatar (.accountpicture-ms)). This file will resemble a similarity .exe, that is, when you double-click on it, the system will automatically apply this image to your account. And I thought, what if I put this file in the "After installation" section (Files) when editing install.wim. The only thing is that this file requires confirmation at startup, just as the registry file requires confirmation at manual startup. I haven't tested it, but I think it might work.
The archive contains an Avatar Image and a Shortcut to the location of the Image of your account.

There is also an easy way to replace the Microsoft Account Image, just place the .png image in the:
$OEM$\$1\ProgramData\Microsoft\User Account Pictures folder.
 

Attachments

Last edited:
I've been working on this problem since last night, and I figured how to install a PNG picture for both Lock Screen and the Settings profile.

1. Download this specific build of ImageMagick (portable), and extract magick.exe

The stupid devs for ImageMagick refuse to believe their current portable version isn't portable now.
Running it throws a "VCOMP140.dll was not found" error. We need this older build which doesn't have any dependency errors.

2. Copy your PNG image as profile.png. The script will use ImageMagick to create each of the resized bitmaps.

3. From Post-Setup (Before logon), add each file one at a time. Pay attention because NTLite tries to be too smart, and will not add the right defaults for what we want.

- Add / File Change_MyProfile.ps1 with no Parameters.​
- Add / File magick.exe. Change the Type from Run to Copy.
- Add / File profile.png. Change the Type from Background to Copy.​

View attachment 12364

4. Apply changes, and create your ISO.
The script will assign the profile image to the first user account on the system (SID >= 1000).​

UPDATE: I found a PS function to perform the re-scaling, so we don't need ImageMagick now.
 

Attachments

Last edited:
Back
Top