Down
Freshman Member
Posts: 65
OS: win10 22h2
Theme: aero10
|
Post by Down on Sept 4, 2024 2:33:57 GMT -8
we know that win10 defaultly store the user account piture in programdata folder.But we can't change the user account picture by just replacing it.If you do so,it will only work on start menu but not in logon screen.So is there a way to use bat or powershell to change the user account picture in the whole system?tks
|
|
DoofusMcGoofus
Freshman Member
Posts: 41
OS: Project Blackcomb (Windows 10 build 19045.4957)
Theme: Hillel Cooperman Longhorn
CPU: Intel Pentium Gold 5405U 2.30Ghz
RAM: 4GB
GPU: Intel UHD 610
Computer Make/Model: Lenovo
|
Post by DoofusMcGoofus on Sept 6, 2024 9:57:31 GMT -8
The profile picture configs are stored in the registry key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AccountPicture\Users. Please note you will also have to get the user ID of who you're changing to change it with a batch or powershell script.
|
|
Down
Freshman Member
Posts: 65
OS: win10 22h2
Theme: aero10
|
Post by Down on Sept 6, 2024 16:19:00 GMT -8
The profile picture configs are stored in the registry key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AccountPicture\Users. Please note you will also have to get the user ID of who you're changing to change it with a batch or powershell script. thanks,but how can i let the cmd change the reg after getting the user id?i think computer can't reognize it if you set the id as a variable and put it in your comand line
|
|
DoofusMcGoofus
Freshman Member
Posts: 41
OS: Project Blackcomb (Windows 10 build 19045.4957)
Theme: Hillel Cooperman Longhorn
CPU: Intel Pentium Gold 5405U 2.30Ghz
RAM: 4GB
GPU: Intel UHD 610
Computer Make/Model: Lenovo
|
Post by DoofusMcGoofus on Sept 6, 2024 16:31:03 GMT -8
The profile picture configs are stored in the registry key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AccountPicture\Users. Please note you will also have to get the user ID of who you're changing to change it with a batch or powershell script. thanks,but how can i let the cmd change the reg after getting the user id?i think computer can't reognize it if you set the id as a variable and put it in your comand line Haven't figured that out yet. I'll let you know if I find anything.
|
|
Down
Freshman Member
Posts: 65
OS: win10 22h2
Theme: aero10
|
Post by Down on Sept 6, 2024 16:46:07 GMT -8
thanks,but how can i let the cmd change the reg after getting the user id?i think computer can't reognize it if you set the id as a variable and put it in your comand line Haven't figured that out yet. I'll let you know if I find anything. very thanks,i will search on internet too
|
|
Down
Freshman Member
Posts: 65
OS: win10 22h2
Theme: aero10
|
Post by Down on Sept 6, 2024 17:51:16 GMT -8
thanks,but how can i let the cmd change the reg after getting the user id?i think computer can't reognize it if you set the id as a variable and put it in your comand line Haven't figured that out yet. I'll let you know if I find anything. i have an idea.we could first get the user id and set it as a variable like "id",then we use the bat to edit a txt(this is workable).the txt is the reg path and the key,and we just need to replace the path with "id" and rename .txt to .reg and import it.i will have a try
|
|
DoofusMcGoofus
Freshman Member
Posts: 41
OS: Project Blackcomb (Windows 10 build 19045.4957)
Theme: Hillel Cooperman Longhorn
CPU: Intel Pentium Gold 5405U 2.30Ghz
RAM: 4GB
GPU: Intel UHD 610
Computer Make/Model: Lenovo
|
Post by DoofusMcGoofus on Sept 6, 2024 18:03:15 GMT -8
Haven't figured that out yet. I'll let you know if I find anything. i have an idea.we could first get the user id and set it as a variable like "id",then we use the bat to edit a txt(this is workable).the txt is the reg path and the key,and we just need to replace the path with "id" and rename .txt to .reg and import it.i will have a try Somewhat inefficient, I've got a general Idea on what the script should do. First, we will need to somehow get the bat running as TrustedInstaller, since modifying the keys normally won't work. Second, we need to get the user ID. Third, we need to merge "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AccountPicture\Users", and our user ID into one string. Fourth, we will need to modify the following keys, Image32, Image40, Image48, Image64, Image96, Image192, Image208, Image240, Image424, Image 448, and Image1080. Setting them to the destination of your chosen pfp should work. And that's it.
|
|
Down
Freshman Member
Posts: 65
OS: win10 22h2
Theme: aero10
|
Post by Down on Sept 6, 2024 18:16:46 GMT -8
i have an idea.we could first get the user id and set it as a variable like "id",then we use the bat to edit a txt(this is workable).the txt is the reg path and the key,and we just need to replace the path with "id" and rename .txt to .reg and import it.i will have a try Somewhat inefficient, I've got a general Idea on what the script should do. First, we will need to somehow get the bat running as TrustedInstaller, since modifying the keys normally won't work. Second, we need to get the user ID. Third, we need to merge "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AccountPicture\Users", and our user ID into one string. Fourth, we will need to modify the following keys, Image32, Image40, Image48, Image64, Image96, Image192, Image208, Image240, Image424, Image 448, and Image1080. Setting them to the destination of your chosen pfp should work. And that's it. ok,i will try again
|
|
DoofusMcGoofus
Freshman Member
Posts: 41
OS: Project Blackcomb (Windows 10 build 19045.4957)
Theme: Hillel Cooperman Longhorn
CPU: Intel Pentium Gold 5405U 2.30Ghz
RAM: 4GB
GPU: Intel UHD 610
Computer Make/Model: Lenovo
|
Post by DoofusMcGoofus on Sept 6, 2024 18:21:25 GMT -8
Somewhat inefficient, I've got a general Idea on what the script should do. First, we will need to somehow get the bat running as TrustedInstaller, since modifying the keys normally won't work. Second, we need to get the user ID. Third, we need to merge "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AccountPicture\Users", and our user ID into one string. Fourth, we will need to modify the following keys, Image32, Image40, Image48, Image64, Image96, Image192, Image208, Image240, Image424, Image 448, and Image1080. Setting them to the destination of your chosen pfp should work. And that's it. ok,i will try again I have whipped up a half done version of the batch script, this does not actually change the profile picture, but it is a good start. Note you will have to run the program with a TrustedInstaller runner such as ExecTi or Winaero Tweaker. . change pfp.bat (889 B)
|
|
Down
Freshman Member
Posts: 65
OS: win10 22h2
Theme: aero10
|
Post by Down on Sept 6, 2024 18:44:28 GMT -8
I have whipped up a half done version of the batch script, this does not actually change the profile picture, but it is a good start. Note you will have to run the program with a TrustedInstaller runner such as ExecTi or Winaero Tweaker. . View Attachmenti will try it,but my computer isn't beside me,but thanks
|
|
Down
Freshman Member
Posts: 65
OS: win10 22h2
Theme: aero10
|
Post by Down on Sept 6, 2024 20:41:28 GMT -8
I have whipped up a half done version of the batch script, this does not actually change the profile picture, but it is a good start. Note you will have to run the program with a TrustedInstaller runner such as ExecTi or Winaero Tweaker. . View Attachmentit works!it can get my userid,i will edit the bat.thankyou
|
|
DoofusMcGoofus
Freshman Member
Posts: 41
OS: Project Blackcomb (Windows 10 build 19045.4957)
Theme: Hillel Cooperman Longhorn
CPU: Intel Pentium Gold 5405U 2.30Ghz
RAM: 4GB
GPU: Intel UHD 610
Computer Make/Model: Lenovo
|
Post by DoofusMcGoofus on Sept 7, 2024 3:59:03 GMT -8
I have whipped up a half done version of the batch script, this does not actually change the profile picture, but it is a good start. Note you will have to run the program with a TrustedInstaller runner such as ExecTi or Winaero Tweaker. . View Attachmentit works!it can get my userid,i will edit the bat.thankyou Yeah no problem.
|
|
Down
Freshman Member
Posts: 65
OS: win10 22h2
Theme: aero10
|
Post by Down on Sept 10, 2024 3:15:32 GMT -8
it works!it can get my userid,i will edit the bat.thankyou Yeah no problem. i find a very strange problem.if i add "reg add" command under the bat and i run it with trustedinstaller,there will be nothing when i open to the reg path.but if i open a new cmd window with trustedinstaller and run it alone,it will appear correctly.i am sure the command is right and i'm using the trustedinstaller. maybe it's my system's problem
|
|
DoofusMcGoofus
Freshman Member
Posts: 41
OS: Project Blackcomb (Windows 10 build 19045.4957)
Theme: Hillel Cooperman Longhorn
CPU: Intel Pentium Gold 5405U 2.30Ghz
RAM: 4GB
GPU: Intel UHD 610
Computer Make/Model: Lenovo
|
Post by DoofusMcGoofus on Sept 10, 2024 5:32:25 GMT -8
i find a very strange problem.if i add "reg add" command under the bat and i run it with trustedinstaller,there will be nothing when i open to the reg path.but if i open a new cmd window with trustedinstaller and run it alone,it will appear correctly.i am sure the command is right and i'm using the trustedinstaller. maybe it's my system's problem Let me see your code. I'll test it on my machine.
|
|
Down
Freshman Member
Posts: 65
OS: win10 22h2
Theme: aero10
|
Post by Down on Sept 14, 2024 4:07:00 GMT -8
i find a very strange problem.if i add "reg add" command under the bat and i run it with trustedinstaller,there will be nothing when i open to the reg path.but if i open a new cmd window with trustedinstaller and run it alone,it will appear correctly.i am sure the command is right and i'm using the trustedinstaller. maybe it's my system's problem Let me see your code. I'll test it on my machine. sorry for late because i am so busy these days.here it is. change.bat (966 B)
|
|
DoofusMcGoofus
Freshman Member
Posts: 41
OS: Project Blackcomb (Windows 10 build 19045.4957)
Theme: Hillel Cooperman Longhorn
CPU: Intel Pentium Gold 5405U 2.30Ghz
RAM: 4GB
GPU: Intel UHD 610
Computer Make/Model: Lenovo
|
Post by DoofusMcGoofus on Sept 14, 2024 7:14:09 GMT -8
I goofed up. It can't get the user id in TrustedInstaller mode because it's running the program as TrustedInstaller, not the current user. If you can get the user ID manually it should work.
|
|
|
Post by Brawllux on Sept 14, 2024 10:30:19 GMT -8
|
|
Down
Freshman Member
Posts: 65
OS: win10 22h2
Theme: aero10
|
Post by Down on Nov 16, 2024 5:46:09 GMT -8
i'd like to say we can do it!Thanks Claasic7.Here is the bat.You need to have several sizes of the picture:32x32,40x40,48x48,64x64,96x96,128x128,192x192,204x204,240x240,424x424,448x448, replace the "your picture path" in the bat with your picture path and run it with administrator,then restart your explorer(you'd better use bmp files) Attachments:changeuserpicture.bat (1.38 KB)
|
|