I have not yet tested if this does the trick, but I will post my script here, if I get it to work.! The keys are pointing to the 5 jpg files mentioned above. The Operation does also set 5 Registry Keys here: In that folder I found 5 versions of my profile pictures in jpg format, that is created when setting the profile pictures. (The last part of this dir should be changed with the unique GUID you got for your user) %appdata%\Microsoft\Windows\AccountPictures and set the value of the file in: "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\AccountPicture\SourceId" but as it is already stated above that does not do it.Īfter doing some registry monitoring when clicking on the "accountpicture-ms" file, that does set the profile picture correct, I noticed some activity in a hidden folder named:Ĭ:\Users\Public\AccountPictures\S-1-5-21-933334596-4129812972-2891473731-1001 I thought I had it figured out by creating an "accountpicture-ms" file on my own computer and coping it to I have been struggling with the same problem for a couple of days now. However, with the path MSFT has taken as of late, I am actually not too surprised. I am surprised MSFT did not think to allow what you are asking it would seem second nature to me. If you do find an answer, it would be nice to know. BMP, it won't work (at least I could not get it to work). If you manually change this SourceId to a path with a. The string value SourceId contains the hex file name. The information is stored in the registry under the key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\AccountPicture. The file has no extension and cannot be opened by normal image editors-Photoshop won't even open it. If you look at the properties of this file, you will notice that it has a specific type of Account Picture. If you look at where account pictures are stored, %appdata%\Roaming\Microsoft\Windows\AccountPictures, you will notice a weird file with a hex file name. Unfortunately, I don't think you can dynamically reference a UNC path for the account picture.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |